home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / nShell™ drop / bin / man next >
MacBinary  |  1994-09-15  |  12.5 KB  |  [NSHC/NSHA]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: man

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Wed Aug 31 01:30:26 1994, modified Thu Sep 15 04:48:15 1994, creator 'NSHA', type 'NSHC' "man", at 0x80 12631 bytes resource Apple HFS/HFS+ resource fork, map offset 0x2eb0, map length 0x2a7, data length 0x2db0, at 16 0x0000200f, nextResourceMap 0x5278dc, fileRef 0xc7e, list offset 0x1c, name offset 0x14a, 3 types, 0x4e534843 'NSHC' * 1 resource offset 0x1a default (weak)
99% file Adobe Photoshop Color swatch, version 0, 256 colors; 1st RGB space (0), w 0x2eb0, x 0, y 0x2db0, z 0 ; 2nd space (679), w 0, x 0x200f, y 0, z 0 default (weak)
98% file data default
98% TrID MacBinary 2 default (weak)
1% TrID Sybase iAnywhere database files default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[NSHC]
macFileCreator[NSHA]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 03 6d 61 6e 00 00 00 | 00 00 00 00 00 00 00 00 |..man...|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4e 53 48 43 4e 53 48 | 41 01 00 00 00 00 00 00 |.NSHCNSH|A.......|
|00000050| 00 00 00 00 00 00 00 00 | 00 31 57 aa 89 c5 f2 aa |........|.1W.....|
|00000060| 9d ba cf 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ee 1a 00 00 |........|........|
|00000080| 00 00 01 00 00 00 2e b0 | 00 00 2d b0 00 00 02 a7 |........|..-.....|
|00000090| 00 00 20 0f 00 00 00 00 | 00 00 00 00 00 00 00 00 |.. .....|........|
|000000a0| 00 00 00 00 01 17 13 00 | 00 00 20 14 00 00 00 00 |........|.. .....|
|000000b0| 03 6d 61 6e 02 00 00 00 | 4e 53 48 43 4e 53 48 41 |.man....|NSHCNSHA|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 0d a9 00 00 00 00 |........|........|
|000000d0| 00 00 4e 53 48 43 4e 53 | 48 41 00 00 00 00 00 00 |..NSHCNS|HA......|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 aa e5 85 33 00 00 | 00 00 00 00 31 57 00 00 |.....3..|....1W..|
|00000100| 00 00 00 00 01 27 13 00 | 00 00 20 2c 00 00 00 00 |.....'..|.. ,....|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 01 22 13 00 |........|....."..|
|00000120| 00 00 20 33 0b 21 54 68 | 69 63 6b 6e 65 2e 73 73 |.. 3.!Th|ickne.ss|
|00000130| 00 00 00 00 01 24 13 00 | 00 00 20 39 00 00 00 00 |.....$..|.. 9....|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 01 1c 13 00 |........|........|
|00000150| 00 00 20 52 0c 21 21 4d | 6f 72 65 46 69 2e 6c 65 |.. R.!!M|oreFi.le|
|00000160| 73 00 00 00 00 02 13 00 | 00 00 20 53 00 00 00 00 |s.......|.. S....|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 01 29 13 00 |........|.....)..|
|00000180| 00 00 06 6a 60 0e 00 00 | 4e 53 48 43 3e 80 00 00 |...j`...|NSHC>...|
|00000190| 00 00 00 00 41 fa ff ee | 4e 71 4e 71 60 00 01 6a |....A...|NqNq`..j|
|000001a0| 4e 56 00 00 48 e7 01 30 | 26 6e 00 0c 42 a7 2f 0b |NV..H..0|&n..B./.|
|000001b0| a9 a5 2e 1f 20 07 54 80 | 20 4b a0 24 20 4b a0 29 |.... .T.| K.$ K.)|
|000001c0| 24 53 0c 32 00 0d 78 ff | 67 0c 15 bc 00 0d 78 00 |$S.2..x.|g.....x.|
|000001d0| 42 32 78 01 60 04 42 32 | 78 00 2f 0a 20 6e 00 08 |B2x.`.B2|x./. n..|
|000001e0| 20 68 00 14 4e 90 20 4b | a0 2a 2e 8b a9 a3 4c df | h..N. K|.*....L.|
|000001f0| 0c 80 4e 5e 4e 75 6d 61 | 6e 5f 64 69 73 70 4e 56 |..N^Numa|n_dispNV|
|00000200| fe 00 48 e7 03 30 26 6e | 00 08 7c 00 30 2e 00 10 |..H..0&n|..|.0...|
|00000210| 48 c0 d0 80 30 33 08 08 | 20 4b d0 c0 48 68 00 d0 |H...03..| K..Hh..|
|00000220| 48 6e fe 00 4e ba 03 7c | 7e ff 48 6e fe 00 20 6e |Hn..N..||~.Hn.. n|
|00000230| 00 0c 20 68 00 40 4e 90 | 4a 40 4f ef 00 0c 66 0a |.. h.@N.|J@O...f.|
|00000240| 42 67 48 6e fe 00 a9 97 | 3e 1f 4a 47 6c 06 70 01 |BgHn....|>.JGl.p.|
|00000250| 60 00 00 96 48 7a 00 ac | 48 6e ff 00 4e ba 03 44 |`...Hz..|Hn..N..D|
|00000260| 4a 6e 00 10 50 8f 66 24 | 30 2b 00 0a 20 4b d0 c0 |Jn..P.f$|0+.. K..|
|00000270| 48 68 00 d0 48 6e ff 00 | 4e ba 03 fc 48 7a 00 82 |Hh..Hn..|N...Hz..|
|00000280| 48 6e ff 00 4e ba 03 f0 | 4f ef 00 10 0c 6b 00 02 |Hn..N...|O....k..|
|00000290| 00 06 6f 18 30 2b 00 0c | 20 4b d0 c0 48 68 00 d0 |..o.0+..| K..Hh..|
|000002a0| 48 6e ff 00 4e ba 03 d0 | 50 8f 60 0e 48 7a 00 4a |Hn..N...|P.`.Hz.J|
|000002b0| 48 6e ff 00 4e ba 03 c0 | 50 8f 42 a7 2f 3c 54 45 |Hn..N...|P.B./<TE|
|000002c0| 58 54 48 6e ff 00 a9 a1 | 24 5f 20 0a 66 04 7c 02 |XTHn....|$_ .f.|.|
|000002d0| 60 0c 2f 0a 2f 2e 00 0c | 4e ba fe c6 50 8f 4a 47 |`././...|N...P.JG|
|000002e0| 67 04 3f 07 a9 9a 30 06 | 4c df 0c c0 4e 5e 4e 75 |g.?...0.|L...N^Nu|
|000002f0| 6d 61 6e 5f 67 65 74 20 | 67 65 6e 65 72 61 6c 00 |man_get |general.|
|00000300| 20 00 6d 61 6e 20 00 00 | 4e 56 00 00 48 e7 03 30 | .man ..|NV..H..0|
|00000310| 26 6e 00 08 24 6e 00 0c | 42 2b 00 02 7e 01 3f 3c |&n..$n..|B+..~.?<|
|00000320| 00 0a 2f 0a 2f 0b 4e ba | 00 ae 4a 40 4f ef 00 0a |.././.N.|..J@O...|
|00000330| 66 56 3c 2b 00 06 0c 46 | 00 02 6d 06 0c 46 00 03 |fV<+...F|..m..F..|
|00000340| 6f 0e 48 7a 00 72 20 52 | 4e 90 7e fd 58 8f 60 30 |o.Hz.r R|N.~.X.`0|
|00000350| 3f 3c 00 01 2f 0a 2f 0b | 4e ba fe a4 3e 00 4f ef |?<.././.|N...>.O.|
|00000360| 00 0a 67 1c 42 67 2f 0a | 2f 0b 4e ba fe 92 3e 00 |..g.Bg/.|/.N...>.|
|00000370| 4f ef 00 0a 67 0a 48 7a | 00 20 20 52 4e 90 58 8f |O...g.Hz|. RN.X.|
|00000380| 37 47 00 04 42 2b 00 02 | 4c df 0c c0 4e 5e 4e 75 |7G..B+..|L...N^Nu|
|00000390| 6d 61 69 6e 20 20 20 20 | 1c 6d 61 6e 3a 20 4d 61 |main |.man: Ma|
|000003a0| 6e 75 61 6c 20 50 61 67 | 65 20 4e 6f 74 20 46 6f |nual Pag|e Not Fo|
|000003b0| 75 6e 64 2e 0d 00 1e 55 | 73 61 67 65 3a 20 6d 61 |und....U|sage: ma|
|000003c0| 6e 20 63 6f 6d 6d 61 6e | 64 20 5b 73 65 63 74 69 |n comman|d [secti|
|000003d0| 6f 6e 5d 2e 0d 00 4e 56 | 00 00 20 6e 00 08 30 10 |on]...NV|.. n..0.|
|000003e0| b0 6e 00 10 67 1e 48 7a | 00 2a 20 6e 00 0c 20 50 |.n..g.Hz|.* n.. P|
|000003f0| 4e 90 20 6e 00 08 31 7c | ff fe 00 04 42 28 00 02 |N. n..1||....B(..|
|00000400| 70 01 60 02 70 00 4e 5e | 4e 75 6e 73 68 63 5f 62 |p.`.p.N^|Nunshc_b|
|00000410| 61 64 2d 54 68 69 73 20 | 63 6f 6d 6d 61 6e 64 20 |ad-This |command |
|00000420| 69 73 20 6e 6f 74 20 6f | 66 20 61 20 63 6f 6d 70 |is not o|f a comp|
|00000430| 61 74 69 62 6c 65 20 76 | 65 72 73 69 6f 6e 2e 0d |atible v|ersion..|
|00000440| 4e 56 00 00 48 e7 1f 10 | 26 6e 00 08 7a 01 78 00 |NV..H...|&n..z.x.|
|00000450| 60 54 20 4b d0 c5 3c 30 | 50 08 30 06 52 46 20 4b |`T K..<0|P.0.RF K|
|00000460| d0 c0 0c 28 00 2d 00 d0 | 66 34 76 00 60 22 be 2e |...(.-..|f4v.`"..|
|00000470| 00 0c 66 02 38 05 0c 07 | 00 61 6d 06 0c 07 00 7a |..f.8...|.am....z|
|00000480| 6f 0e 0c 07 00 41 6d 06 | 0c 07 00 5a 6f 02 76 01 |o....Am.|...Zo.v.|
|00000490| 30 06 52 46 20 4b d0 c0 | 1e 28 00 d0 66 d0 4a 43 |0.RF K..|.(..f.JC|
|000004a0| 67 02 78 00 52 45 4a 44 | 66 06 ba 6b 00 06 6d a2 |g.x.REJD|f..k..m.|
|000004b0| 30 04 4c df 08 f8 4e 5e | 4e 75 6e 73 68 63 5f 67 |0.L...N^|Nunshc_g|
|000004c0| 6f 74 4e 56 00 00 48 e7 | 07 10 26 6e 00 08 7e 01 |otNV..H.|..&n..~.|
|000004d0| 30 2e 00 0c 48 c0 d0 80 | 3c 33 08 08 20 4b d0 c6 |0...H...|<3.. K..|
|000004e0| 0c 28 00 2d 00 d0 66 12 | 52 46 60 0e 0c 05 00 30 |.(.-..f.|RF`....0|
|000004f0| 6d 06 0c 05 00 39 6f 02 | 7e 00 4a 47 67 0e 30 06 |m....9o.|~.JGg.0.|
|00000500| 52 46 20 4b d0 c0 1a 28 | 00 d0 66 e0 30 07 4c df |RF K...(|..f.0.L.|
|00000510| 08 e0 4e 5e 4e 75 6e 73 | 68 63 5f 69 73 5f 4e 56 |..N^Nuns|hc_is_NV|
|00000520| 00 00 48 e7 03 00 30 6e | 00 0c d1 c8 d1 ee 00 08 |..H...0n|........|
|00000530| 3e 28 00 08 30 07 52 47 | 20 6e 00 08 d0 c0 1c 28 |>(..0.RG| n.....(|
|00000540| 00 d0 0c 06 00 2d 56 c0 | 44 00 48 80 4c df 00 c0 |.....-V.|D.H.L...|
|00000550| 4e 5e 4e 75 6e 73 68 63 | 5f 69 73 5f 4e 56 00 00 |N^Nunshc|_is_NV..|
|00000560| 48 e7 03 00 7c 01 dc 6e | 00 0c 7e 00 60 14 3f 06 |H...|..n|..~.`.?.|
|00000570| 2f 2e 00 08 4e ba ff a8 | 4a 40 5c 8f 67 02 3e 06 |/...N...|J@\.g.>.|
|00000580| 52 46 4a 47 66 0a 20 6e | 00 08 bc 68 00 06 6d de |RFJGf. n|...h..m.|
|00000590| 30 07 4c df 00 c0 4e 5e | 4e 75 6e 73 68 63 5f 6e |0.L...N^|Nunshc_n|
|000005a0| 65 78 4e 56 00 00 48 e7 | 03 00 7e 00 60 0a 52 47 |exNV..H.|..~.`.RG|
|000005b0| 20 6e 00 08 11 86 70 00 | 20 6e 00 0c 52 ae 00 0c | n....p.| n..R...|
|000005c0| 1c 10 66 ea 20 6e 00 08 | 10 87 4c df 00 c0 4e 5e |..f. n..|..L...N^|
|000005d0| 4e 75 70 53 74 72 46 72 | 6f 6d 4e 56 00 00 2f 07 |NupStrFr|omNV../.|
|000005e0| 20 6e 00 0c 52 ae 00 0c | 22 6e 00 08 52 ae 00 08 | n..R...|"n..R...|
|000005f0| 1e 10 12 87 70 00 10 07 | 3e 00 60 12 20 6e 00 0c |....p...|>.`. n..|
|00000600| 52 ae 00 0c 22 6e 00 08 | 52 ae 00 08 12 90 53 47 |R..."n..|R.....SG|
|00000610| 4a 47 6c e8 2e 1f 4e 5e | 4e 75 70 53 74 72 43 6f |JGl...N^|NupStrCo|
|00000620| 70 79 4e 56 00 00 48 e7 | 07 10 26 6e 00 08 7e 00 |pyNV..H.|..&n..~.|
|00000630| 1e 13 20 6e 00 0c 7c 00 | 1c 10 4a 46 67 28 30 07 |.. n..|.|..JFg(0.|
|00000640| d0 46 0c 40 01 00 6c 1e | 7a 01 60 10 20 6e 00 0c |.F.@..l.|z.`. n..|
|00000650| 30 07 d0 45 17 b0 50 00 | 00 00 52 45 bc 45 6c ec |0..E..P.|..RE.El.|
|00000660| 10 07 d0 06 16 80 4c df | 08 e0 4e 5e 4e 75 70 53 |......L.|..N^NupS|
|00000670| 74 72 41 70 70 65 4e 56 | 00 00 48 e7 03 10 26 6e |trAppeNV|..H...&n|
|00000680| 00 08 7e 00 1e 13 60 06 | 52 47 17 86 70 00 20 6e |..~...`.|RG..p. n|
|00000690| 00 0c 52 ae 00 0c 1c 10 | 66 ee 0c 47 01 00 6c 02 |..R.....|f..G..l.|
|000006a0| 16 87 4c df 08 c0 4e 5e | 4e 75 70 53 74 72 41 70 |..L...N^|NupStrAp|
|000006b0| 70 65 4e 56 00 00 2f 07 | 20 6e 00 08 7e 00 1e 10 |peNV../.| n..~...|
|000006c0| 22 6e 00 0c 70 00 10 11 | b0 47 67 1c 70 00 60 1e |"n..p...|.Gg.p.`.|
|000006d0| 20 6e 00 08 22 6e 00 0c | 10 30 70 00 b0 31 70 00 | n.."n..|.0p..1p.|
|000006e0| 67 04 70 00 60 08 53 47 | 4a 47 66 e4 70 01 2e 1f |g.p.`.SG|JGf.p...|
|000006f0| 4e 5e 4e 75 70 53 74 72 | 45 71 75 61 4e 56 00 00 |N^NupStr|EquaNV..|
|00000700| 2f 07 20 6e 00 08 52 ae | 00 08 1e 10 20 6e 00 0c |/. n..R.|.... n..|
|00000710| 52 ae 00 0c be 10 67 04 | 70 00 60 06 4a 07 66 e2 |R.....g.|p.`.J.f.|
|00000720| 70 01 2e 1f 4e 5e 4e 75 | 63 53 74 72 45 71 75 61 |p...N^Nu|cStrEqua|
|00000730| 4e 56 00 00 2f 07 7e 00 | 60 02 52 47 20 6e 00 08 |NV../.~.|`.RG n..|
|00000740| 52 ae 00 08 4a 10 66 f2 | 30 07 2e 1f 4e 5e 4e 75 |R...J.f.|0...N^Nu|
|00000750| 63 53 74 72 4c 65 6e 20 | 4e 56 00 00 48 e7 07 10 |cStrLen |NV..H...|
|00000760| 3e 2e 00 0e 26 6e 00 08 | 3c 2e 00 0c 4a 47 6c 06 |>...&n..|<...JGl.|
|00000770| 7a 01 44 47 60 02 7a 00 | 4a 47 66 1c 60 24 20 07 |z.DG`.z.|JGf.`$ .|
|00000780| 48 c0 81 fc 00 0a 48 40 | 06 00 00 30 53 46 17 80 |H.....H@|...0SF..|
|00000790| 60 00 48 c7 8f fc 00 0a | 4a 46 67 0e 4a 47 66 de |`.H.....|JFg.JGf.|
|000007a0| 60 08 53 46 17 bc 00 30 | 60 00 4a 46 67 0c 4a 45 |`.SF...0|`.JFg.JE|
|000007b0| 67 08 53 46 17 bc 00 2d | 60 00 4a 47 67 1c 7c 00 |g.SF...-|`.JGg.|.|
|000007c0| 60 08 17 bc 00 2a 60 00 | 52 46 bc 6e 00 0c 6d f2 |`....*`.|RF.n..m.|
|000007d0| 60 0c 53 46 17 bc 00 20 | 60 00 4a 46 66 f4 4c df |`.SF... |`.JFf.L.|
|000007e0| 08 e0 4e 5e 4e 75 63 53 | 74 72 46 72 6f 6d 00 00 |..N^NucS|trFrom..|
|000007f0| 00 37 01 02 80 00 00 00 | 05 31 2e 30 2e 32 2a 31 |.7......|.1.0.2*1|
|00000800| 2e 30 2e 32 2c 20 a9 20 | 4e 65 77 70 6f 72 74 20 |.0.2, . |Newport |
|00000810| 53 6f 66 74 77 61 72 65 | 20 44 65 76 65 6c 6f 70 |Software| Develop|
|00000820| 6d 65 6e 74 20 31 39 39 | 34 00 00 00 27 01 02 80 |ment 199|4...'...|
|00000830| 00 00 00 05 31 2e 30 2e | 32 1a 31 2e 30 2e 32 20 |....1.0.|2.1.0.2 |
|00000840| 28 41 6e 20 6e 53 68 65 | 6c 6c aa 20 43 6f 6d 6d |(An nShe|ll. Comm|
|00000850| 61 6e 64 29 00 00 02 03 | 0d 4e 41 4d 45 0d 0d 6d |and)....|.NAME..m|
|00000860| 61 6e 20 2d 20 63 6f 6d | 6d 61 6e 64 20 6c 69 6e |an - com|mand lin|
|00000870| 65 20 6d 61 6e 75 61 6c | 0d 0d 53 59 4e 4f 50 53 |e manual|..SYNOPS|
|00000880| 49 53 0d 0d 6d 61 6e 20 | 63 6f 6d 6d 61 6e 64 20 |IS..man |command |
|00000890| 5b 73 65 63 74 69 6f 6e | 5d 0d 0d 44 45 53 43 52 |[section|]..DESCR|
|000008a0| 49 50 54 49 4f 4e 0d 0d | 54 68 65 20 22 6d 61 6e |IPTION..|The "man|
|000008b0| 22 20 70 72 6f 67 72 61 | 6d 20 72 65 61 64 73 20 |" progra|m reads |
|000008c0| 61 20 64 65 73 63 72 69 | 70 74 69 76 65 20 74 65 |a descri|ptive te|
|000008d0| 78 74 20 72 65 73 6f 75 | 72 63 65 20 66 72 6f 6d |xt resou|rce from|
|000008e0| 20 77 69 74 68 69 6e 20 | 61 20 73 65 6c 65 63 74 | within |a select|
|000008f0| 65 64 20 63 6f 6d 6d 61 | 6e 64 20 61 6e 64 20 77 |ed comma|nd and w|
|00000900| 72 69 74 65 73 20 74 68 | 61 74 20 74 65 78 74 20 |rites th|at text |
|00000910| 74 6f 20 73 74 61 6e 64 | 61 72 64 20 6f 75 74 70 |to stand|ard outp|
|00000920| 75 74 2e 0d 0d 4e 6f 74 | 65 3a 20 4d 61 6e 20 70 |ut...Not|e: Man p|
|00000930| 61 67 65 73 20 61 72 65 | 20 61 76 61 69 6c 61 62 |ages are| availab|
|00000940| 6c 65 20 66 6f 72 20 66 | 6c 6f 77 2d 6f 66 2d 63 |le for f|low-of-c|
|00000950| 6f 6e 74 72 6f 6c 20 73 | 74 61 74 65 6d 65 6e 74 |ontrol s|tatement|
|00000960| 73 2c 20 62 75 74 20 74 | 68 65 79 20 6d 75 73 74 |s, but t|hey must|
|00000970| 20 62 65 20 71 75 6f 74 | 65 64 20 73 6f 20 74 68 | be quot|ed so th|
|00000980| 61 74 20 74 68 65 20 73 | 68 65 6c 6c 20 6b 6e 6f |at the s|hell kno|
|00000990| 77 73 20 68 6f 77 20 74 | 6f 20 65 78 65 63 75 74 |ws how t|o execut|
|000009a0| 65 20 74 68 65 6d 3a 0d | 0d 6d 61 6e 20 22 69 66 |e them:.|.man "if|
|000009b0| 22 0d 6d 61 6e 20 22 77 | 68 69 6c 65 22 0d 0d 52 |".man "w|hile"..R|
|000009c0| 45 54 55 52 4e 20 43 4f | 44 45 53 0d 0d 3c 30 09 |ETURN CO|DES..<0.|
|000009d0| 45 72 72 6f 72 0d 30 09 | 53 75 63 63 65 73 73 0d |Error.0.|Success.|
|000009e0| 0d 53 45 45 20 41 4c 53 | 4f 0d 0d 74 72 79 20 22 |.SEE ALS|O..try "|
|000009f0| 6d 61 6e 20 6d 61 6e 20 | 72 65 73 6f 75 72 63 65 |man man |resource|
|00000a00| 73 22 0d 0d 54 68 65 20 | 6e 53 68 65 6c 6c 20 50 |s"..The |nShell P|
|00000a10| 72 6f 67 72 61 6d 6d 65 | 72 27 73 20 47 75 69 64 |rogramme|r's Guid|
|00000a20| 65 20 63 6f 6e 74 61 69 | 6e 73 20 61 64 64 69 74 |e contai|ns addit|
|00000a30| 69 6f 6e 61 6c 20 69 6e | 66 6f 72 6d 61 74 69 6f |ional in|formatio|
|00000a40| 6e 20 6f 6e 20 77 72 69 | 74 69 6e 67 20 6d 61 6e |n on wri|ting man|
|00000a50| 20 72 65 73 6f 75 72 63 | 65 73 2e 00 00 01 1c 0d | resourc|es......|
|00000a60| 4d 41 4e 20 52 45 53 4f | 55 52 43 45 53 0d 0d 54 |MAN RESO|URCES..T|
|00000a70| 6f 20 63 72 65 61 74 65 | 20 6d 61 6e 20 70 61 67 |o create| man pag|
|00000a80| 65 73 20 66 6f 72 20 79 | 6f 75 72 20 6f 77 6e 20 |es for y|our own |
|00000a90| 63 6f 6d 6d 61 6e 64 73 | 2c 20 63 72 65 61 74 65 |commands|, create|
|00000aa0| 20 54 45 58 54 20 72 65 | 73 6f 75 72 63 65 73 20 | TEXT re|sources |
|00000ab0| 77 69 74 68 3a 0d 0d 31 | 2e 20 20 20 20 20 52 65 |with:..1|. Re|
|00000ac0| 73 6f 75 72 63 65 20 49 | 44 73 20 61 62 6f 76 65 |source I|Ds above|
|00000ad0| 20 73 69 78 74 65 65 6e | 20 74 68 6f 75 73 61 6e | sixteen| thousan|
|00000ae0| 64 2e 0d 32 2e 20 20 20 | 20 20 52 65 73 6f 75 72 |d..2. | Resour|
|00000af0| 63 65 20 6e 61 6d 65 73 | 20 6f 66 20 74 68 65 20 |ce names| of the |
|00000b00| 66 6f 72 6d 61 74 20 22 | 6d 61 6e 20 73 75 62 6a |format "|man subj|
|00000b10| 65 63 74 22 0d 0d 4e 6f | 74 65 20 74 68 61 74 20 |ect"..No|te that |
|00000b20| 74 68 65 20 72 65 73 6f | 75 72 63 65 20 77 69 74 |the reso|urce wit|
|00000b30| 68 20 74 68 65 20 6e 61 | 6d 65 20 22 6d 61 6e 20 |h the na|me "man |
|00000b40| 67 65 6e 65 72 61 6c 22 | 20 69 73 20 75 73 65 64 |general"| is used|
|00000b50| 20 77 68 65 6e 20 74 68 | 65 20 75 73 65 72 20 64 | when th|e user d|
|00000b60| 6f 65 73 20 6e 6f 74 20 | 73 70 65 63 69 66 79 20 |oes not |specify |
|00000b70| 61 20 73 75 62 6a 65 63 | 74 2e 0d 00 00 02 34 0d |a subjec|t.....4.|
|00000b80| 4e 41 4d 45 0d 0d 73 65 | 74 20 2d 20 73 65 74 20 |NAME..se|t - set |
|00000b90| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 61 6c 20 76 61 |environm|ental va|
|00000ba0| 72 69 61 62 6c 65 73 0d | 0d 53 59 4e 4f 50 53 49 |riables.|.SYNOPSI|
|00000bb0| 53 0d 0d 73 65 74 20 6e | 61 6d 65 20 5b 76 61 6c |S..set n|ame [val|
|00000bc0| 75 65 5d 0d 0d 44 45 53 | 43 52 49 50 54 49 4f 4e |ue]..DES|CRIPTION|
|00000bd0| 0d 0d 54 68 65 20 22 73 | 65 74 22 20 63 6f 6d 6d |..The "s|et" comm|
|00000be0| 61 6e 64 20 61 6c 6c 6f | 77 73 20 74 68 65 20 6f |and allo|ws the o|
|00000bf0| 70 65 72 61 74 6f 72 20 | 74 6f 20 73 65 74 20 76 |perator |to set v|
|00000c00| 61 72 69 61 62 6c 65 73 | 20 77 69 74 68 69 6e 20 |ariables| within |
|00000c10| 74 68 65 20 73 68 65 6c | 6c 20 65 6e 76 69 72 6f |the shel|l enviro|
|00000c20| 6e 6d 65 6e 74 2e 20 20 | 54 68 65 20 6e 6f 72 6d |nment. |The norm|
|00000c30| 61 6c 20 73 79 6e 74 61 | 78 20 69 6e 63 6c 75 64 |al synta|x includ|
|00000c40| 65 73 20 61 20 22 76 61 | 6c 75 65 22 20 73 74 72 |es a "va|lue" str|
|00000c50| 69 6e 67 2e 20 20 49 66 | 20 6e 6f 20 76 61 6c 75 |ing. If| no valu|
|00000c60| 65 20 69 73 20 67 69 76 | 65 6e 2c 20 74 68 65 20 |e is giv|en, the |
|00000c70| 73 68 65 6c 6c 20 76 61 | 72 69 61 62 6c 65 20 69 |shell va|riable i|
|00000c80| 73 20 73 65 74 20 65 71 | 75 61 6c 20 74 6f 20 61 |s set eq|ual to a|
|00000c90| 20 6e 75 6c 6c 20 73 74 | 72 69 6e 67 2e 0d 0d 56 | null st|ring...V|
|00000ca0| 61 72 69 61 62 6c 65 20 | 6e 61 6d 65 73 20 61 72 |ariable |names ar|
|00000cb0| 65 20 6c 69 6d 69 74 65 | 64 20 74 6f 20 74 68 65 |e limite|d to the|
|00000cc0| 20 63 68 61 72 61 63 74 | 65 72 73 20 61 2d 7a 2c | charact|ers a-z,|
|00000cd0| 20 41 2d 5a 2c 20 30 2d | 39 2c 20 5f 20 61 6e 64 | A-Z, 0-|9, _ and|
|00000ce0| 20 6d 61 79 20 62 65 20 | 33 31 20 63 68 61 72 61 | may be |31 chara|
|00000cf0| 63 74 65 72 73 20 69 6e | 20 6c 65 6e 67 74 68 2e |cters in| length.|
|00000d00| 20 20 54 68 65 20 76 61 | 6c 75 65 20 73 74 72 69 | The va|lue stri|
|00000d10| 6e 67 20 6d 61 79 20 63 | 6f 6e 74 61 69 6e 20 61 |ng may c|ontain a|
|00000d20| 6e 79 20 63 68 61 72 61 | 63 74 65 72 20 61 6e 64 |ny chara|cter and|
|00000d30| 20 6d 61 79 20 62 65 20 | 32 35 35 20 63 68 61 72 | may be |255 char|
|00000d40| 61 63 74 65 72 73 20 69 | 6e 20 6c 65 6e 67 74 68 |acters i|n length|
|00000d50| 2e 0d 0d 52 45 54 55 52 | 4e 20 43 4f 44 45 53 0d |...RETUR|N CODES.|
|00000d60| 0d 3c 30 09 41 6e 20 65 | 72 72 6f 72 20 70 72 65 |.<0.An e|rror pre|
|00000d70| 76 65 6e 74 65 64 20 74 | 68 65 20 61 73 73 69 67 |vented t|he assig|
|00000d80| 6e 6d 65 6e 74 0d 30 09 | 53 75 63 63 65 73 73 66 |nment.0.|Successf|
|00000d90| 75 6c 20 61 73 73 69 67 | 6e 6d 65 6e 74 0d 0d 53 |ul assig|nment..S|
|00000da0| 45 45 20 41 4c 53 4f 0d | 0d 75 6e 73 65 74 2c 20 |EE ALSO.|.unset, |
|00000db0| 65 6e 76 00 00 01 64 0d | 4e 41 4d 45 0d 0d 75 6e |env...d.|NAME..un|
|00000dc0| 73 65 74 20 2d 20 72 65 | 6d 6f 76 65 20 61 20 73 |set - re|move a s|
|00000dd0| 68 65 6c 6c 20 76 61 72 | 69 61 62 6c 65 0d 0d 53 |hell var|iable..S|
|00000de0| 59 4e 4f 50 53 49 53 0d | 0d 75 6e 73 65 74 20 6e |YNOPSIS.|.unset n|
|00000df0| 61 6d 65 0d 0d 44 45 53 | 43 52 49 50 54 49 4f 4e |ame..DES|CRIPTION|
|00000e00| 0d 0d 54 68 65 20 22 75 | 6e 73 65 74 22 20 63 6f |..The "u|nset" co|
|00000e10| 6d 6d 61 6e 64 20 72 65 | 6d 6f 76 65 73 20 74 68 |mmand re|moves th|
|00000e20| 65 20 6e 61 6d 65 64 20 | 76 61 72 69 61 62 6c 65 |e named |variable|
|00000e30| 20 66 72 6f 6d 20 74 68 | 65 20 73 68 65 6c 6c 20 | from th|e shell |
|00000e40| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 2e 0d 0d 56 61 |environm|ent...Va|
|00000e50| 72 69 61 62 6c 65 20 6e | 61 6d 65 73 20 61 72 65 |riable n|ames are|
|00000e60| 20 6c 69 6d 69 74 65 64 | 20 74 6f 20 74 68 65 20 | limited| to the |
|00000e70| 63 68 61 72 61 63 74 65 | 72 73 20 61 2d 7a 2c 20 |characte|rs a-z, |
|00000e80| 41 2d 5a 2c 20 30 2d 39 | 2c 20 5f 20 61 6e 64 20 |A-Z, 0-9|, _ and |
|00000e90| 6d 61 79 20 62 65 20 33 | 31 20 63 68 61 72 61 63 |may be 3|1 charac|
|00000ea0| 74 65 72 73 20 69 6e 20 | 6c 65 6e 67 74 68 2e 0d |ters in |length..|
|00000eb0| 0d 52 45 54 55 52 4e 20 | 43 4f 44 45 53 0d 0d 3c |.RETURN |CODES..<|
|00000ec0| 30 09 41 6e 20 65 72 72 | 6f 72 20 70 72 65 76 65 |0.An err|or preve|
|00000ed0| 6e 74 65 64 20 74 68 65 | 20 72 65 6d 6f 76 61 6c |nted the| removal|
|00000ee0| 0d 30 09 53 75 63 63 65 | 73 73 66 75 6c 20 72 65 |.0.Succe|ssful re|
|00000ef0| 6d 6f 76 61 6c 20 6f 72 | 20 6e 61 6d 65 20 6e 6f |moval or| name no|
|00000f00| 74 20 66 6f 75 6e 64 0d | 0d 53 45 45 20 41 4c 53 |t found.|.SEE ALS|
|00000f10| 4f 0d 0d 73 65 74 2c 20 | 65 6e 76 00 00 01 d0 0d |O..set, |env.....|
|00000f20| 4e 41 4d 45 0d 0d 65 6e | 76 20 2d 20 6c 69 73 74 |NAME..en|v - list|
|00000f30| 20 73 68 65 6c 6c 20 76 | 61 72 69 61 62 6c 65 73 | shell v|ariables|
|00000f40| 0d 0d 53 59 4e 4f 50 53 | 49 53 0d 0d 65 6e 76 20 |..SYNOPS|IS..env |
|00000f50| 5b 6e 61 6d 65 31 5d 20 | 5b 6e 61 6d 65 32 5d 20 |[name1] |[name2] |
|00000f60| 2e 20 2e 20 2e 20 0d 0d | 44 45 53 43 52 49 50 54 |. . . ..|DESCRIPT|
|00000f70| 49 4f 4e 0d 0d 54 68 65 | 20 22 65 6e 76 22 20 63 |ION..The| "env" c|
|00000f80| 6f 6d 6d 61 6e 64 20 77 | 69 6c 6c 20 6c 69 73 74 |ommand w|ill list|
|00000f90| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 73 68 65 | the cur|rent she|
|00000fa0| 6c 6c 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 2e 20 |ll envir|onment. |
|00000fb0| 20 56 61 72 69 61 62 6c | 65 73 20 61 72 65 20 6c | Variabl|es are l|
|00000fc0| 69 73 74 65 64 20 77 69 | 74 68 20 74 68 65 69 72 |isted wi|th their|
|00000fd0| 20 76 61 6c 75 65 73 2e | 20 20 49 66 20 6e 6f 20 | values.| If no |
|00000fe0| 70 61 72 61 6d 65 74 65 | 72 73 20 61 72 65 20 67 |paramete|rs are g|
|00000ff0| 69 76 65 6e 2c 20 61 6c | 6c 20 61 63 74 69 76 65 |iven, al|l active|
|00001000| 20 73 68 65 6c 6c 20 76 | 61 72 69 61 62 6c 65 73 | shell v|ariables|
|00001010| 20 61 72 65 20 6c 69 73 | 74 65 64 2e 0d 0d 56 61 | are lis|ted...Va|
|00001020| 72 69 61 62 6c 65 20 6e | 61 6d 65 73 20 61 72 65 |riable n|ames are|
|00001030| 20 6c 69 6d 69 74 65 64 | 20 74 6f 20 74 68 65 20 | limited| to the |
|00001040| 63 68 61 72 61 63 74 65 | 72 73 20 61 2d 7a 2c 20 |characte|rs a-z, |
|00001050| 41 2d 5a 2c 20 30 2d 39 | 2c 20 5f 20 61 6e 64 20 |A-Z, 0-9|, _ and |
|00001060| 6d 61 79 20 62 65 20 33 | 31 20 63 68 61 72 61 63 |may be 3|1 charac|
|00001070| 74 65 72 73 20 69 6e 20 | 6c 65 6e 67 74 68 2e 0d |ters in |length..|
|00001080| 0d 52 45 54 55 52 4e 20 | 43 4f 44 45 53 0d 0d 3c |.RETURN |CODES..<|
|00001090| 30 09 41 6e 20 65 72 72 | 6f 72 20 70 72 65 76 65 |0.An err|or preve|
|000010a0| 6e 74 65 64 20 74 68 65 | 20 73 65 61 72 63 68 0d |nted the| search.|
|000010b0| 30 09 53 75 63 63 65 73 | 73 66 75 6c 20 73 65 61 |0.Succes|sful sea|
|000010c0| 72 63 68 20 28 69 6e 63 | 2e 20 6e 61 6d 65 20 6e |rch (inc|. name n|
|000010d0| 6f 74 20 66 6f 75 6e 64 | 29 0d 0d 53 45 45 20 41 |ot found|)..SEE A|
|000010e0| 4c 53 4f 0d 0d 73 65 74 | 2c 20 75 6e 73 65 74 00 |LSO..set|, unset.|
|000010f0| 00 01 d8 0d 4e 41 4d 45 | 0d 0d 70 61 74 68 63 68 |....NAME|..pathch|
|00001100| 6b 20 2d 20 65 76 61 6c | 75 61 74 65 73 20 61 20 |k - eval|uates a |
|00001110| 66 75 6c 6c 20 6f 72 20 | 70 61 72 74 69 61 6c 20 |full or |partial |
|00001120| 70 61 74 68 6e 61 6d 65 | 0d 0d 53 59 4e 4f 50 53 |pathname|..SYNOPS|
|00001130| 49 53 0d 0d 70 61 74 68 | 63 68 6b 20 70 61 74 68 |IS..path|chk path|
|00001140| 6e 61 6d 65 0d 0d 44 45 | 53 43 52 49 50 54 49 4f |name..DE|SCRIPTIO|
|00001150| 4e 0d 0d 54 68 65 20 6e | 53 68 65 6c 6c 20 65 6e |N..The n|Shell en|
|00001160| 76 69 72 6f 6e 6d 65 6e | 74 20 75 73 65 73 20 74 |vironmen|t uses t|
|00001170| 72 61 64 69 74 69 6f 6e | 61 6c 20 4d 61 63 69 6e |radition|al Macin|
|00001180| 74 6f 73 68 20 70 61 74 | 68 6e 61 6d 65 73 2e 20 |tosh pat|hnames. |
|00001190| 20 54 68 65 20 22 70 61 | 74 68 63 68 6b 22 20 63 | The "pa|thchk" c|
|000011a0| 6f 6d 6d 61 6e 64 20 69 | 73 20 69 6e 63 6c 75 64 |ommand i|s includ|
|000011b0| 65 64 20 74 6f 20 61 6c | 6c 6f 77 20 74 68 65 20 |ed to al|low the |
|000011c0| 75 73 65 72 20 74 6f 20 | 65 78 70 65 72 69 6d 65 |user to |experime|
|000011d0| 6e 74 20 77 69 74 68 20 | 74 68 6f 73 65 20 70 61 |nt with |those pa|
|000011e0| 74 68 6e 61 6d 65 73 2e | 0d 0d 47 69 76 65 6e 20 |thnames.|..Given |
|000011f0| 61 20 66 75 6c 6c 20 6f | 72 20 70 61 72 74 69 61 |a full o|r partia|
|00001200| 6c 20 70 61 74 68 6e 61 | 6d 65 2c 20 70 61 74 68 |l pathna|me, path|
|00001210| 63 68 6b 20 77 69 6c 6c | 20 65 63 68 6f 20 74 68 |chk will| echo th|
|00001220| 65 20 65 71 75 69 76 61 | 6c 65 6e 74 20 66 75 6c |e equiva|lent ful|
|00001230| 6c 20 70 61 74 68 6e 61 | 6d 65 2e 0d 0d 50 61 74 |l pathna|me...Pat|
|00001240| 68 63 68 6b 20 64 6f 65 | 73 20 6e 6f 74 20 63 68 |hchk doe|s not ch|
|00001250| 65 63 6b 20 74 6f 20 73 | 65 65 20 69 66 20 61 6e |eck to s|ee if an|
|00001260| 79 20 6f 66 20 74 68 65 | 20 73 70 65 63 69 66 69 |y of the| specifi|
|00001270| 65 64 20 76 6f 6c 75 6d | 65 73 2c 20 64 69 72 65 |ed volum|es, dire|
|00001280| 63 74 6f 72 69 65 73 2c | 20 6f 72 20 66 69 6c 65 |ctories,| or file|
|00001290| 73 20 65 78 69 73 74 2e | 0d 0d 52 45 54 55 52 4e |s exist.|..RETURN|
|000012a0| 20 43 4f 44 45 53 0d 0d | 3c 30 09 45 72 72 6f 72 | CODES..|<0.Error|
|000012b0| 0d 30 09 53 75 63 63 65 | 73 73 0d 0d 53 45 45 20 |.0.Succe|ss..SEE |
|000012c0| 41 4c 53 4f 0d 0d 77 68 | 69 63 68 00 00 02 44 0d |ALSO..wh|ich...D.|
|000012d0| 4e 41 4d 45 0d 0d 77 68 | 69 63 68 20 2d 20 77 68 |NAME..wh|ich - wh|
|000012e0| 69 63 68 20 63 6f 70 79 | 20 6f 66 20 61 20 63 6f |ich copy| of a co|
|000012f0| 6d 6d 61 6e 64 20 77 69 | 6c 6c 20 62 65 20 75 73 |mmand wi|ll be us|
|00001300| 65 64 0d 0d 53 59 4e 4f | 50 53 49 53 0d 0d 77 68 |ed..SYNO|PSIS..wh|
|00001310| 69 63 68 20 63 6f 6d 6d | 61 6e 64 0d 0d 44 45 53 |ich comm|and..DES|
|00001320| 43 52 49 50 54 49 4f 4e | 0d 0d 22 77 68 69 63 68 |CRIPTION|.."which|
|00001330| 22 20 65 78 61 6d 69 6e | 65 73 20 74 68 65 20 63 |" examin|es the c|
|00001340| 6f 6d 6d 61 6e 64 2d 73 | 65 61 72 63 68 2d 70 61 |ommand-s|earch-pa|
|00001350| 74 68 2c 20 61 6e 64 20 | 72 65 74 75 72 6e 73 20 |th, and |returns |
|00001360| 74 68 65 20 6c 6f 63 61 | 74 69 6f 6e 20 6f 66 20 |the loca|tion of |
|00001370| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 77 68 69 63 |the comm|and whic|
|00001380| 68 20 77 6f 75 6c 64 20 | 62 65 20 65 78 65 63 75 |h would |be execu|
|00001390| 74 65 64 2e 0d 0d 54 68 | 65 20 77 68 69 63 68 20 |ted...Th|e which |
|000013a0| 63 6f 6d 6d 61 6e 64 20 | 66 69 72 73 74 20 63 68 |command |first ch|
|000013b0| 65 63 6b 73 20 74 6f 20 | 73 65 65 20 69 66 20 74 |ecks to |see if t|
|000013c0| 68 65 20 73 70 65 63 69 | 66 69 65 64 20 63 6f 6d |he speci|fied com|
|000013d0| 6d 61 6e 64 20 69 73 20 | 69 6e 74 65 72 6e 61 6c |mand is |internal|
|000013e0| 20 74 6f 20 74 68 65 20 | 6e 53 68 65 6c 6c 20 61 | to the |nShell a|
|000013f0| 70 70 6c 69 63 61 74 69 | 6f 6e 2e 20 20 45 61 63 |pplicati|on. Eac|
|00001400| 68 20 64 69 72 65 63 74 | 6f 72 79 20 69 6e 20 74 |h direct|ory in t|
|00001410| 68 65 20 73 65 61 72 63 | 68 20 70 61 74 68 20 69 |he searc|h path i|
|00001420| 73 20 74 68 65 6e 20 65 | 78 61 6d 69 6e 65 64 20 |s then e|xamined |
|00001430| 74 6f 20 73 65 65 20 69 | 66 20 69 74 20 63 6f 6e |to see i|f it con|
|00001440| 74 61 69 6e 73 20 61 6e | 20 65 78 74 65 72 6e 61 |tains an| externa|
|00001450| 6c 20 63 6f 6d 6d 61 6e | 64 20 6f 72 20 73 68 65 |l comman|d or she|
|00001460| 6c 6c 20 73 63 72 69 70 | 74 20 6f 66 20 74 68 65 |ll scrip|t of the|
|00001470| 20 67 69 76 65 6e 20 6e | 61 6d 65 2e 20 20 41 6e | given n|ame. An|
|00001480| 79 20 27 54 45 58 54 27 | 20 66 69 6c 65 20 77 69 |y 'TEXT'| file wi|
|00001490| 74 68 20 61 20 6d 61 74 | 63 68 69 6e 67 20 6e 61 |th a mat|ching na|
|000014a0| 6d 65 20 69 73 20 61 73 | 73 75 6d 65 64 20 74 6f |me is as|sumed to|
|000014b0| 20 62 65 20 61 20 73 68 | 65 6c 6c 20 73 63 72 69 | be a sh|ell scri|
|000014c0| 70 74 2e 0d 0d 52 45 54 | 55 52 4e 20 43 4f 44 45 |pt...RET|URN CODE|
|000014d0| 53 0d 0d 3c 30 09 45 72 | 72 6f 72 20 6f 72 20 63 |S..<0.Er|ror or c|
|000014e0| 6f 6d 6d 61 6e 64 20 6e | 6f 74 20 66 6f 75 6e 64 |ommand n|ot found|
|000014f0| 0d 30 09 53 75 63 63 65 | 73 73 0d 0d 53 45 45 20 |.0.Succe|ss..SEE |
|00001500| 41 4c 53 4f 0d 0d 70 61 | 74 68 2c 20 70 61 74 68 |ALSO..pa|th, path|
|00001510| 63 68 6b 00 00 02 e1 0d | 4e 41 4d 45 0d 0d 70 61 |chk.....|NAME..pa|
|00001520| 74 68 20 2d 20 64 65 66 | 69 6e 65 20 61 20 63 6f |th - def|ine a co|
|00001530| 6d 6d 61 6e 64 20 73 65 | 61 72 63 68 20 70 61 74 |mmand se|arch pat|
|00001540| 68 0d 0d 53 59 4e 4f 50 | 53 49 53 0d 0d 70 61 74 |h..SYNOP|SIS..pat|
|00001550| 68 20 22 74 68 69 73 3a | 69 73 3a 70 61 74 68 3a |h "this:|is:path:|
|00001560| 6f 6e 65 2f 74 68 69 73 | 3a 69 73 3a 70 61 74 68 |one/this|:is:path|
|00001570| 3a 74 77 6f 22 0d 0d 44 | 45 53 43 52 49 50 54 49 |:two"..D|ESCRIPTI|
|00001580| 4f 4e 0d 0d 54 68 65 20 | 22 70 61 74 68 22 20 63 |ON..The |"path" c|
|00001590| 6f 6d 6d 61 6e 64 20 61 | 6c 6c 6f 77 73 20 74 68 |ommand a|llows th|
|000015a0| 65 20 75 73 65 72 20 74 | 6f 20 73 70 65 63 69 66 |e user t|o specif|
|000015b0| 79 20 61 20 63 6f 6d 6d | 61 6e 64 20 73 65 61 72 |y a comm|and sear|
|000015c0| 63 68 20 70 61 74 68 2e | 20 20 54 68 65 20 70 61 |ch path.| The pa|
|000015d0| 74 68 20 69 73 20 73 74 | 6f 72 65 64 20 69 6e 20 |th is st|ored in |
|000015e0| 74 68 65 20 24 50 41 54 | 48 20 73 68 65 6c 6c 20 |the $PAT|H shell |
|000015f0| 76 61 72 69 61 62 6c 65 | 2e 20 20 44 69 72 65 63 |variable|. Direc|
|00001600| 74 6f 72 69 65 73 20 61 | 72 65 20 73 65 70 61 72 |tories a|re separ|
|00001610| 61 74 65 64 20 62 79 20 | 22 3a 22 2c 20 61 6e 64 |ated by |":", and|
|00001620| 20 70 61 74 68 73 20 61 | 72 65 20 73 65 70 61 72 | paths a|re separ|
|00001630| 61 74 65 64 20 62 79 20 | 22 2f 22 2e 20 20 41 20 |ated by |"/". A |
|00001640| 73 69 6e 67 6c 65 20 22 | 3a 22 20 6d 61 79 20 62 |single "|:" may b|
|00001650| 65 20 75 73 65 64 20 74 | 6f 20 73 70 65 63 69 66 |e used t|o specif|
|00001660| 79 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 64 69 |y the cu|rrent di|
|00001670| 72 65 63 74 6f 72 79 2c | 20 61 73 20 69 6e 20 22 |rectory,| as in "|
|00001680| 70 61 74 68 20 3a 2f 74 | 68 69 73 3a 69 73 3a 70 |path :/t|his:is:p|
|00001690| 61 74 68 3a 74 77 6f 22 | 20 2e 0d 0d 41 6e 79 20 |ath:two"| ...Any |
|000016a0| 76 61 72 69 61 62 6c 65 | 73 20 75 73 65 64 20 69 |variable|s used i|
|000016b0| 6e 20 74 68 65 20 70 61 | 74 68 20 61 72 65 20 65 |n the pa|th are e|
|000016c0| 76 61 6c 75 61 74 65 64 | 20 77 68 65 6e 20 79 6f |valuated| when yo|
|000016d0| 75 20 69 73 73 75 65 20 | 74 68 65 20 70 61 74 68 |u issue |the path|
|000016e0| 20 63 6f 6d 6d 61 6e 64 | 2e 20 20 49 6e 20 74 68 | command|. In th|
|000016f0| 65 20 63 6f 6d 6d 61 6e | 64 20 22 70 61 74 68 20 |e comman|d "path |
|00001700| 24 48 4f 4d 45 3a 62 69 | 6e 22 2c 20 74 68 65 20 |$HOME:bi|n", the |
|00001710| 76 61 6c 75 65 20 6f 66 | 20 24 48 4f 4d 45 20 69 |value of| $HOME i|
|00001720| 73 20 65 76 61 6c 75 61 | 74 65 64 20 69 6d 6d 65 |s evalua|ted imme|
|00001730| 64 69 61 74 65 6c 79 2e | 20 20 49 66 20 79 6f 75 |diately.| If you|
|00001740| 20 63 68 61 6e 67 65 20 | 74 68 65 20 76 61 6c 75 | change |the valu|
|00001750| 65 20 6f 66 20 24 48 4f | 4d 45 20 6c 61 74 65 72 |e of $HO|ME later|
|00001760| 2c 20 74 68 65 20 70 61 | 74 68 20 77 69 6c 6c 20 |, the pa|th will |
|00001770| 63 6f 6e 74 69 6e 75 65 | 20 74 6f 20 70 6f 69 6e |continue| to poin|
|00001780| 74 20 74 6f 20 74 68 65 | 20 6f 72 69 67 69 6e 61 |t to the| origina|
|00001790| 6c 20 3a 62 69 6e 20 64 | 69 72 65 63 74 6f 72 79 |l :bin d|irectory|
|000017a0| 2e 0d 0d 54 68 65 20 64 | 65 66 61 75 6c 74 20 70 |...The d|efault p|
|000017b0| 61 74 68 20 69 73 20 22 | 3a 2f 24 48 4f 4d 45 3a |ath is "|:/$HOME:|
|000017c0| 62 69 6e 22 2e 0d 0d 52 | 45 54 55 52 4e 20 43 4f |bin"...R|ETURN CO|
|000017d0| 44 45 53 0d 0d 3c 30 09 | 45 72 72 6f 72 0d 30 09 |DES..<0.|Error.0.|
|000017e0| 53 75 63 63 65 73 73 0d | 0d 53 45 45 20 41 4c 53 |Success.|.SEE ALS|
|000017f0| 4f 0d 0d 77 68 69 63 68 | 00 00 00 f7 0d 4e 41 4d |O..which|.....NAM|
|00001800| 45 0d 0d 70 77 64 20 2d | 20 70 72 69 6e 74 20 77 |E..pwd -| print w|
|00001810| 6f 72 6b 69 6e 67 20 64 | 69 72 65 63 74 6f 72 79 |orking d|irectory|
|00001820| 0d 0d 53 59 4e 4f 50 53 | 49 53 0d 0d 70 77 64 0d |..SYNOPS|IS..pwd.|
|00001830| 0d 44 45 53 43 52 49 50 | 54 49 4f 4e 0d 0d 54 68 |.DESCRIP|TION..Th|
|00001840| 65 20 22 70 77 64 22 20 | 63 6f 6d 6d 61 6e 64 20 |e "pwd" |command |
|00001850| 70 72 69 6e 74 73 20 74 | 68 65 20 66 75 6c 6c 20 |prints t|he full |
|00001860| 70 61 74 68 20 6f 66 20 | 74 68 65 20 63 75 72 72 |path of |the curr|
|00001870| 65 6e 74 20 77 6f 72 6b | 69 6e 67 20 64 69 72 65 |ent work|ing dire|
|00001880| 63 74 6f 72 79 2e 20 20 | 54 68 65 20 77 6f 72 6b |ctory. |The work|
|00001890| 69 6e 67 20 64 69 72 65 | 63 74 6f 72 79 20 69 73 |ing dire|ctory is|
|000018a0| 20 73 74 6f 72 65 64 20 | 69 6e 20 74 68 65 20 24 | stored |in the $|
|000018b0| 50 57 44 20 73 68 65 6c | 6c 20 76 61 72 69 61 62 |PWD shel|l variab|
|000018c0| 6c 65 2e 0d 0d 52 45 54 | 55 52 4e 20 43 4f 44 45 |le...RET|URN CODE|
|000018d0| 53 0d 0d 3c 30 09 45 72 | 72 6f 72 0d 30 09 53 75 |S..<0.Er|ror.0.Su|
|000018e0| 63 63 65 73 73 0d 0d 53 | 45 45 20 41 4c 53 4f 0d |ccess..S|EE ALSO.|
|000018f0| 0d 63 64 00 00 02 30 0d | 4e 41 4d 45 0d 0d 63 64 |.cd...0.|NAME..cd|
|00001900| 20 2d 20 63 68 61 6e 67 | 65 20 77 6f 72 6b 69 6e | - chang|e workin|
|00001910| 67 20 64 69 72 65 63 74 | 6f 72 79 0d 0d 53 59 4e |g direct|ory..SYN|
|00001920| 4f 50 53 49 53 0d 0d 63 | 64 20 22 74 68 69 73 3a |OPSIS..c|d "this:|
|00001930| 69 73 3a 6d 79 20 6e 65 | 77 3a 70 61 74 68 22 0d |is:my ne|w:path".|
|00001940| 0d 44 45 53 43 52 49 50 | 54 49 4f 4e 0d 0d 54 68 |.DESCRIP|TION..Th|
|00001950| 65 20 22 63 64 22 20 63 | 6f 6d 6d 61 6e 64 20 61 |e "cd" c|ommand a|
|00001960| 6c 6c 6f 77 73 20 74 68 | 65 20 75 73 65 72 20 74 |llows th|e user t|
|00001970| 6f 20 73 70 65 63 69 66 | 79 20 61 20 6e 65 77 20 |o specif|y a new |
|00001980| 77 6f 72 6b 69 6e 67 20 | 64 69 72 65 63 74 6f 72 |working |director|
|00001990| 79 2e 20 20 54 68 65 20 | 77 6f 72 6b 69 6e 67 20 |y. The |working |
|000019a0| 64 69 72 65 63 74 6f 72 | 79 20 69 73 20 68 65 6c |director|y is hel|
|000019b0| 64 20 69 6e 20 74 68 65 | 20 24 50 57 44 20 73 68 |d in the| $PWD sh|
|000019c0| 65 6c 6c 20 76 61 72 69 | 61 62 6c 65 2e 20 20 49 |ell vari|able. I|
|000019d0| 66 20 61 20 70 61 72 74 | 69 61 6c 20 70 61 74 68 |f a part|ial path|
|000019e0| 6e 61 6d 65 20 69 73 20 | 67 69 76 65 6e 2c 20 61 |name is |given, a|
|000019f0| 20 66 75 6c 6c 20 70 61 | 74 68 20 69 73 20 67 65 | full pa|th is ge|
|00001a00| 6e 65 72 61 74 65 64 20 | 75 73 69 6e 67 20 74 68 |nerated |using th|
|00001a10| 65 20 65 78 69 73 74 69 | 6e 67 20 24 50 57 44 20 |e existi|ng $PWD |
|00001a20| 76 61 72 69 61 62 6c 65 | 2e 20 20 49 66 20 6e 6f |variable|. If no|
|00001a30| 20 70 61 74 68 6e 61 6d | 65 20 69 73 20 67 69 76 | pathnam|e is giv|
|00001a40| 65 6e 2c 20 74 68 65 20 | 75 73 65 72 20 69 73 20 |en, the |user is |
|00001a50| 72 65 74 75 72 6e 65 64 | 20 74 6f 20 74 68 65 20 |returned| to the |
|00001a60| 24 48 4f 4d 45 20 64 69 | 72 65 63 74 6f 72 79 2e |$HOME di|rectory.|
|00001a70| 0d 0d 50 61 74 68 6e 61 | 6d 65 73 20 63 6f 6e 73 |..Pathna|mes cons|
|00001a80| 69 73 74 20 6f 66 20 76 | 6f 6c 75 6d 65 20 61 6e |ist of v|olume an|
|00001a90| 64 20 64 69 72 65 63 74 | 6f 72 79 20 6e 61 6d 65 |d direct|ory name|
|00001aa0| 73 20 73 65 70 61 72 61 | 74 65 64 20 62 79 20 27 |s separa|ted by '|
|00001ab0| 3a 27 20 63 68 61 72 61 | 63 74 65 72 73 2e 20 20 |:' chara|cters. |
|00001ac0| 50 61 74 68 6e 61 6d 65 | 73 20 6d 61 79 20 62 65 |Pathname|s may be|
|00001ad0| 20 22 71 75 6f 74 65 64 | 22 2c 20 61 6e 64 20 6d | "quoted|", and m|
|00001ae0| 75 73 74 20 62 65 20 77 | 68 65 6e 20 61 20 76 6f |ust be w|hen a vo|
|00001af0| 6c 75 6d 65 20 6f 72 20 | 64 69 72 65 63 74 6f 72 |lume or |director|
|00001b00| 79 20 6e 61 6d 65 20 63 | 6f 6e 74 61 69 6e 73 20 |y name c|ontains |
|00001b10| 61 20 73 70 61 63 65 2e | 0d 0d 53 45 45 20 41 4c |a space.|..SEE AL|
|00001b20| 53 4f 0d 0d 70 77 64 00 | 00 02 4e 0d 4e 41 4d 45 |SO..pwd.|..N.NAME|
|00001b30| 0d 0d 74 68 65 6e 20 2d | 20 63 6f 6e 64 69 74 69 |..then -| conditi|
|00001b40| 6f 6e 61 6c 20 65 78 65 | 63 75 74 69 6f 6e 0d 0d |onal exe|cution..|
|00001b50| 53 59 4e 4f 50 53 49 53 | 0d 0d 69 66 20 3c 63 6f |SYNOPSIS|..if <co|
|00001b60| 6d 6d 61 6e 64 73 31 3e | 20 74 68 65 6e 20 3c 63 |mmands1>| then <c|
|00001b70| 6f 6d 6d 61 6e 64 73 32 | 3e 20 5b 65 6c 73 65 20 |ommands2|> [else |
|00001b80| 3c 63 6f 6d 6d 61 6e 64 | 73 33 3e 5d 20 65 6e 64 |<command|s3>] end|
|00001b90| 69 66 0d 0d 44 45 53 43 | 52 49 50 54 49 4f 4e 0d |if..DESC|RIPTION.|
|00001ba0| 0d 49 66 20 74 68 65 20 | 72 65 73 75 6c 74 20 6f |.If the |result o|
|00001bb0| 66 20 74 68 65 20 6c 61 | 73 74 20 63 6f 6d 6d 61 |f the la|st comma|
|00001bc0| 6e 64 20 6f 66 20 74 68 | 65 20 73 65 74 20 3c 63 |nd of th|e set <c|
|00001bd0| 6f 6d 6d 61 6e 64 73 31 | 3e 20 63 6f 6d 70 6c 65 |ommands1|> comple|
|00001be0| 74 65 73 20 77 69 74 68 | 6f 75 74 20 65 72 72 6f |tes with|out erro|
|00001bf0| 72 20 28 72 65 73 75 6c | 74 20 3d 20 7a 65 72 6f |r (resul|t = zero|
|00001c00| 29 2c 20 74 68 65 6e 20 | 74 68 65 20 3c 63 6f 6d |), then |the <com|
|00001c10| 6d 61 6e 64 73 32 3e 20 | 63 6c 61 75 73 65 20 77 |mands2> |clause w|
|00001c20| 69 6c 6c 20 62 65 20 65 | 78 65 63 75 74 65 64 2e |ill be e|xecuted.|
|00001c30| 0d 0d 49 66 20 74 68 65 | 20 72 65 73 75 6c 74 20 |..If the| result |
|00001c40| 6f 66 20 74 68 65 20 6c | 61 73 74 20 63 6f 6d 6d |of the l|ast comm|
|00001c50| 61 6e 64 20 6f 66 20 74 | 68 65 20 73 65 74 20 3c |and of t|he set <|
|00001c60| 63 6f 6d 6d 61 6e 64 73 | 31 3e 20 70 72 6f 64 75 |commands|1> produ|
|00001c70| 63 65 73 20 61 6e 20 65 | 72 72 6f 72 20 28 72 65 |ces an e|rror (re|
|00001c80| 73 75 6c 74 20 3c 3e 20 | 7a 65 72 6f 29 2c 20 61 |sult <> |zero), a|
|00001c90| 6e 64 20 61 6e 20 65 6c | 73 65 2d 63 6c 61 75 73 |nd an el|se-claus|
|00001ca0| 65 20 69 73 20 70 72 65 | 73 65 6e 74 2c 20 74 68 |e is pre|sent, th|
|00001cb0| 61 74 20 63 6c 61 75 73 | 65 20 77 69 6c 6c 20 65 |at claus|e will e|
|00001cc0| 78 65 63 75 74 65 2e 0d | 0d 46 6c 6f 77 20 6f 66 |xecute..|.Flow of|
|00001cd0| 20 63 6f 6e 74 72 6f 6c | 20 73 74 61 74 65 6d 65 | control| stateme|
|00001ce0| 6e 74 73 20 61 72 65 20 | 61 76 61 69 6c 61 62 6c |nts are |availabl|
|00001cf0| 65 20 69 6e 20 6e 53 68 | 65 6c 6c 2d 50 72 6f 28 |e in nSh|ell-Pro(|
|00001d00| 74 6d 29 0d 0d 52 45 54 | 55 52 4e 20 43 4f 44 45 |tm)..RET|URN CODE|
|00001d10| 53 0d 0d 3c 30 09 45 72 | 72 6f 72 0d 30 09 53 75 |S..<0.Er|ror.0.Su|
|00001d20| 63 63 65 73 73 0d 0d 53 | 45 45 20 41 4c 53 4f 0d |ccess..S|EE ALSO.|
|00001d30| 0d 77 68 69 6c 65 2c 20 | 75 6e 74 69 6c 0d 0d 45 |.while, |until..E|
|00001d40| 58 41 4d 50 4c 45 53 0d | 0d 69 66 20 79 65 73 6e |XAMPLES.|.if yesn|
|00001d50| 6f 20 22 53 68 6f 75 6c | 64 20 49 20 73 61 79 20 |o "Shoul|d I say |
|00001d60| 68 65 6c 6c 6f 3f 22 20 | 74 68 65 6e 20 68 65 6c |hello?" |then hel|
|00001d70| 6c 6f 20 65 6e 64 69 66 | 0d 00 00 02 4b 0d 4e 41 |lo endif|....K.NA|
|00001d80| 4d 45 0d 0d 69 66 20 2d | 20 63 6f 6e 64 69 74 69 |ME..if -| conditi|
|00001d90| 6f 6e 61 6c 20 65 78 65 | 63 75 74 69 6f 6e 0d 0d |onal exe|cution..|
|00001da0| 53 59 4e 4f 50 53 49 53 | 0d 0d 69 66 20 3c 63 6f |SYNOPSIS|..if <co|
|00001db0| 6d 6d 61 6e 64 73 31 3e | 20 74 68 65 6e 20 3c 63 |mmands1>| then <c|
|00001dc0| 6f 6d 6d 61 6e 64 73 32 | 3e 20 5b 65 6c 73 65 20 |ommands2|> [else |
|00001dd0| 3c 63 6f 6d 6d 61 6e 64 | 73 33 3e 5d 20 65 6e 64 |<command|s3>] end|
|00001de0| 69 66 0d 0d 44 45 53 43 | 52 49 50 54 49 4f 4e 0d |if..DESC|RIPTION.|
|00001df0| 0d 49 66 20 74 68 65 20 | 72 65 73 75 6c 74 20 6f |.If the |result o|
|00001e00| 66 20 74 68 65 20 6c 61 | 73 74 20 63 6f 6d 6d 61 |f the la|st comma|
|00001e10| 6e 64 20 6f 66 20 74 68 | 65 20 73 65 74 20 3c 63 |nd of th|e set <c|
|00001e20| 6f 6d 6d 61 6e 64 73 31 | 3e 20 63 6f 6d 70 6c 65 |ommands1|> comple|
|00001e30| 74 65 73 20 77 69 74 68 | 6f 75 74 20 65 72 72 6f |tes with|out erro|
|00001e40| 72 20 28 72 65 73 75 6c | 74 20 3d 20 7a 65 72 6f |r (resul|t = zero|
|00001e50| 29 2c 20 74 68 65 6e 20 | 74 68 65 20 3c 63 6f 6d |), then |the <com|
|00001e60| 6d 61 6e 64 73 32 3e 20 | 63 6c 61 75 73 65 20 77 |mands2> |clause w|
|00001e70| 69 6c 6c 20 62 65 20 65 | 78 65 63 75 74 65 64 2e |ill be e|xecuted.|
|00001e80| 0d 0d 49 66 20 74 68 65 | 20 72 65 73 75 6c 74 20 |..If the| result |
|00001e90| 6f 66 20 74 68 65 20 6c | 61 73 74 20 63 6f 6d 6d |of the l|ast comm|
|00001ea0| 61 6e 64 20 6f 66 20 74 | 68 65 20 73 65 74 20 3c |and of t|he set <|
|00001eb0| 63 6f 6d 6d 61 6e 64 73 | 31 3e 20 70 72 6f 64 75 |commands|1> produ|
|00001ec0| 63 65 73 20 61 6e 20 65 | 72 72 6f 72 20 28 72 65 |ces an e|rror (re|
|00001ed0| 73 75 6c 74 20 3c 3e 20 | 7a 65 72 6f 29 2c 20 61 |sult <> |zero), a|
|00001ee0| 6e 64 20 61 6e 20 65 6c | 73 65 2d 63 6c 61 75 73 |nd an el|se-claus|
|00001ef0| 65 20 69 73 20 70 72 65 | 73 65 6e 74 2c 20 74 68 |e is pre|sent, th|
|00001f00| 61 74 20 63 6c 61 75 73 | 65 20 77 69 6c 6c 20 65 |at claus|e will e|
|00001f10| 78 65 63 75 74 65 2e 0d | 0d 46 6c 6f 77 20 6f 66 |xecute..|.Flow of|
|00001f20| 20 63 6f 6e 74 72 6f 6c | 20 73 74 61 74 65 6d 65 | control| stateme|
|00001f30| 6e 74 73 20 61 72 65 20 | 61 76 61 69 6c 61 62 6c |nts are |availabl|
|00001f40| 65 20 69 6e 20 6e 53 68 | 65 6c 6c 2d 50 72 6f 28 |e in nSh|ell-Pro(|
|00001f50| 74 6d 29 0d 0d 52 45 54 | 55 52 4e 20 43 4f 44 45 |tm)..RET|URN CODE|
|00001f60| 53 0d 0d 3c 30 09 45 72 | 72 6f 72 0d 30 09 53 75 |S..<0.Er|ror.0.Su|
|00001f70| 63 63 65 73 73 0d 0d 53 | 45 45 20 41 4c 53 4f 0d |ccess..S|EE ALSO.|
|00001f80| 0d 77 68 69 6c 65 2c 20 | 75 6e 74 69 6c 0d 0d 45 |.while, |until..E|
|00001f90| 58 41 4d 50 4c 45 53 0d | 0d 69 66 20 79 65 73 6e |XAMPLES.|.if yesn|
|00001fa0| 6f 20 22 53 68 6f 75 6c | 64 20 49 20 73 61 79 20 |o "Shoul|d I say |
|00001fb0| 68 65 6c 6c 6f 3f 22 20 | 74 68 65 6e 20 68 65 6c |hello?" |then hel|
|00001fc0| 6c 6f 20 65 6e 64 69 66 | 00 00 02 4e 0d 4e 41 4d |lo endif|...N.NAM|
|00001fd0| 45 0d 0d 65 6c 73 65 20 | 2d 20 63 6f 6e 64 69 74 |E..else |- condit|
|00001fe0| 69 6f 6e 61 6c 20 65 78 | 65 63 75 74 69 6f 6e 0d |ional ex|ecution.|
|00001ff0| 0d 53 59 4e 4f 50 53 49 | 53 0d 0d 69 66 20 3c 63 |.SYNOPSI|S..if <c|
|00002000| 6f 6d 6d 61 6e 64 73 31 | 3e 20 74 68 65 6e 20 3c |ommands1|> then <|
|00002010| 63 6f 6d 6d 61 6e 64 73 | 32 3e 20 5b 65 6c 73 65 |commands|2> [else|
|00002020| 20 3c 63 6f 6d 6d 61 6e | 64 73 33 3e 5d 20 65 6e | <comman|ds3>] en|
|00002030| 64 69 66 0d 0d 44 45 53 | 43 52 49 50 54 49 4f 4e |dif..DES|CRIPTION|
|00002040| 0d 0d 49 66 20 74 68 65 | 20 72 65 73 75 6c 74 20 |..If the| result |
|00002050| 6f 66 20 74 68 65 20 6c | 61 73 74 20 63 6f 6d 6d |of the l|ast comm|
|00002060| 61 6e 64 20 6f 66 20 74 | 68 65 20 73 65 74 20 3c |and of t|he set <|
|00002070| 63 6f 6d 6d 61 6e 64 73 | 31 3e 20 63 6f 6d 70 6c |commands|1> compl|
|00002080| 65 74 65 73 20 77 69 74 | 68 6f 75 74 20 65 72 72 |etes wit|hout err|
|00002090| 6f 72 20 28 72 65 73 75 | 6c 74 20 3d 20 7a 65 72 |or (resu|lt = zer|
|000020a0| 6f 29 2c 20 74 68 65 6e | 20 74 68 65 20 3c 63 6f |o), then| the <co|
|000020b0| 6d 6d 61 6e 64 73 32 3e | 20 63 6c 61 75 73 65 20 |mmands2>| clause |
|000020c0| 77 69 6c 6c 20 62 65 20 | 65 78 65 63 75 74 65 64 |will be |executed|
|000020d0| 2e 0d 0d 49 66 20 74 68 | 65 20 72 65 73 75 6c 74 |...If th|e result|
|000020e0| 20 6f 66 20 74 68 65 20 | 6c 61 73 74 20 63 6f 6d | of the |last com|
|000020f0| 6d 61 6e 64 20 6f 66 20 | 74 68 65 20 73 65 74 20 |mand of |the set |
|00002100| 3c 63 6f 6d 6d 61 6e 64 | 73 31 3e 20 70 72 6f 64 |<command|s1> prod|
|00002110| 75 63 65 73 20 61 6e 20 | 65 72 72 6f 72 20 28 72 |uces an |error (r|
|00002120| 65 73 75 6c 74 20 3c 3e | 20 7a 65 72 6f 29 2c 20 |esult <>| zero), |
|00002130| 61 6e 64 20 61 6e 20 65 | 6c 73 65 2d 63 6c 61 75 |and an e|lse-clau|
|00002140| 73 65 20 69 73 20 70 72 | 65 73 65 6e 74 2c 20 74 |se is pr|esent, t|
|00002150| 68 61 74 20 63 6c 61 75 | 73 65 20 77 69 6c 6c 20 |hat clau|se will |
|00002160| 65 78 65 63 75 74 65 2e | 0d 0d 46 6c 6f 77 20 6f |execute.|..Flow o|
|00002170| 66 20 63 6f 6e 74 72 6f | 6c 20 73 74 61 74 65 6d |f contro|l statem|
|00002180| 65 6e 74 73 20 61 72 65 | 20 61 76 61 69 6c 61 62 |ents are| availab|
|00002190| 6c 65 20 69 6e 20 6e 53 | 68 65 6c 6c 2d 50 72 6f |le in nS|hell-Pro|
|000021a0| 28 74 6d 29 0d 0d 52 45 | 54 55 52 4e 20 43 4f 44 |(tm)..RE|TURN COD|
|000021b0| 45 53 0d 0d 3c 30 09 45 | 72 72 6f 72 0d 30 09 53 |ES..<0.E|rror.0.S|
|000021c0| 75 63 63 65 73 73 0d 0d | 53 45 45 20 41 4c 53 4f |uccess..|SEE ALSO|
|000021d0| 0d 0d 77 68 69 6c 65 2c | 20 75 6e 74 69 6c 0d 0d |..while,| until..|
|000021e0| 45 58 41 4d 50 4c 45 53 | 0d 0d 69 66 20 79 65 73 |EXAMPLES|..if yes|
|000021f0| 6e 6f 20 22 53 68 6f 75 | 6c 64 20 49 20 73 61 79 |no "Shou|ld I say|
|00002200| 20 68 65 6c 6c 6f 3f 22 | 20 74 68 65 6e 20 68 65 | hello?"| then he|
|00002210| 6c 6c 6f 20 65 6e 64 69 | 66 0d 00 00 02 4f 0d 4e |llo endi|f....O.N|
|00002220| 41 4d 45 0d 0d 65 6e 64 | 69 66 20 2d 20 63 6f 6e |AME..end|if - con|
|00002230| 64 69 74 69 6f 6e 61 6c | 20 65 78 65 63 75 74 69 |ditional| executi|
|00002240| 6f 6e 0d 0d 53 59 4e 4f | 50 53 49 53 0d 0d 69 66 |on..SYNO|PSIS..if|
|00002250| 20 3c 63 6f 6d 6d 61 6e | 64 73 31 3e 20 74 68 65 | <comman|ds1> the|
|00002260| 6e 20 3c 63 6f 6d 6d 61 | 6e 64 73 32 3e 20 5b 65 |n <comma|nds2> [e|
|00002270| 6c 73 65 20 3c 63 6f 6d | 6d 61 6e 64 73 33 3e 5d |lse <com|mands3>]|
|00002280| 20 65 6e 64 69 66 0d 0d | 44 45 53 43 52 49 50 54 | endif..|DESCRIPT|
|00002290| 49 4f 4e 0d 0d 49 66 20 | 74 68 65 20 72 65 73 75 |ION..If |the resu|
|000022a0| 6c 74 20 6f 66 20 74 68 | 65 20 6c 61 73 74 20 63 |lt of th|e last c|
|000022b0| 6f 6d 6d 61 6e 64 20 6f | 66 20 74 68 65 20 73 65 |ommand o|f the se|
|000022c0| 74 20 3c 63 6f 6d 6d 61 | 6e 64 73 31 3e 20 63 6f |t <comma|nds1> co|
|000022d0| 6d 70 6c 65 74 65 73 20 | 77 69 74 68 6f 75 74 20 |mpletes |without |
|000022e0| 65 72 72 6f 72 20 28 72 | 65 73 75 6c 74 20 3d 20 |error (r|esult = |
|000022f0| 7a 65 72 6f 29 2c 20 74 | 68 65 6e 20 74 68 65 20 |zero), t|hen the |
|00002300| 3c 63 6f 6d 6d 61 6e 64 | 73 32 3e 20 63 6c 61 75 |<command|s2> clau|
|00002310| 73 65 20 77 69 6c 6c 20 | 62 65 20 65 78 65 63 75 |se will |be execu|
|00002320| 74 65 64 2e 0d 0d 49 66 | 20 74 68 65 20 72 65 73 |ted...If| the res|
|00002330| 75 6c 74 20 6f 66 20 74 | 68 65 20 6c 61 73 74 20 |ult of t|he last |
|00002340| 63 6f 6d 6d 61 6e 64 20 | 6f 66 20 74 68 65 20 73 |command |of the s|
|00002350| 65 74 20 3c 63 6f 6d 6d | 61 6e 64 73 31 3e 20 70 |et <comm|ands1> p|
|00002360| 72 6f 64 75 63 65 73 20 | 61 6e 20 65 72 72 6f 72 |roduces |an error|
|00002370| 20 28 72 65 73 75 6c 74 | 20 3c 3e 20 7a 65 72 6f | (result| <> zero|
|00002380| 29 2c 20 61 6e 64 20 61 | 6e 20 65 6c 73 65 2d 63 |), and a|n else-c|
|00002390| 6c 61 75 73 65 20 69 73 | 20 70 72 65 73 65 6e 74 |lause is| present|
|000023a0| 2c 20 74 68 61 74 20 63 | 6c 61 75 73 65 20 77 69 |, that c|lause wi|
|000023b0| 6c 6c 20 65 78 65 63 75 | 74 65 2e 0d 0d 46 6c 6f |ll execu|te...Flo|
|000023c0| 77 20 6f 66 20 63 6f 6e | 74 72 6f 6c 20 73 74 61 |w of con|trol sta|
|000023d0| 74 65 6d 65 6e 74 73 20 | 61 72 65 20 61 76 61 69 |tements |are avai|
|000023e0| 6c 61 62 6c 65 20 69 6e | 20 6e 53 68 65 6c 6c 2d |lable in| nShell-|
|000023f0| 50 72 6f 28 74 6d 29 0d | 0d 52 45 54 55 52 4e 20 |Pro(tm).|.RETURN |
|00002400| 43 4f 44 45 53 0d 0d 3c | 30 09 45 72 72 6f 72 0d |CODES..<|0.Error.|
|00002410| 30 09 53 75 63 63 65 73 | 73 0d 0d 53 45 45 20 41 |0.Succes|s..SEE A|
|00002420| 4c 53 4f 0d 0d 77 68 69 | 6c 65 2c 20 75 6e 74 69 |LSO..whi|le, unti|
|00002430| 6c 0d 0d 45 58 41 4d 50 | 4c 45 53 0d 0d 69 66 20 |l..EXAMP|LES..if |
|00002440| 79 65 73 6e 6f 20 22 53 | 68 6f 75 6c 64 20 49 20 |yesno "S|hould I |
|00002450| 73 61 79 20 68 65 6c 6c | 6f 3f 22 20 74 68 65 6e |say hell|o?" then|
|00002460| 20 68 65 6c 6c 6f 20 65 | 6e 64 69 66 0d 00 00 02 | hello e|ndif....|
|00002470| 6c 0d 4e 41 4d 45 0d 0d | 77 68 69 6c 65 20 2d 20 |l.NAME..|while - |
|00002480| 63 6f 6e 64 69 74 69 6f | 6e 61 6c 20 65 78 65 63 |conditio|nal exec|
|00002490| 75 74 69 6f 6e 0d 0d 53 | 59 4e 4f 50 53 49 53 0d |ution..S|YNOPSIS.|
|000024a0| 0d 77 68 69 6c 65 20 3c | 63 6f 6d 6d 61 6e 64 73 |.while <|commands|
|000024b0| 31 3e 20 64 6f 20 3c 63 | 6f 6d 6d 61 6e 64 73 32 |1> do <c|ommands2|
|000024c0| 3e 20 64 6f 6e 65 0d 0d | 44 45 53 43 52 49 50 54 |> done..|DESCRIPT|
|000024d0| 49 4f 4e 0d 0d 49 6e 20 | 74 68 69 73 20 73 74 72 |ION..In |this str|
|000024e0| 75 63 74 75 72 65 2c 20 | 74 68 65 20 3c 63 6f 6d |ucture, |the <com|
|000024f0| 6d 61 6e 64 73 31 3e 20 | 63 6c 61 75 73 65 20 77 |mands1> |clause w|
|00002500| 69 6c 6c 20 61 6c 77 61 | 79 73 20 65 78 65 63 75 |ill alwa|ys execu|
|00002510| 74 65 2e 20 20 49 66 20 | 74 68 65 20 72 65 73 75 |te. If |the resu|
|00002520| 6c 74 20 6f 66 20 74 68 | 65 20 6c 61 73 74 20 63 |lt of th|e last c|
|00002530| 6f 6d 6d 61 6e 64 20 6f | 66 20 74 68 65 20 73 65 |ommand o|f the se|
|00002540| 74 20 63 6f 6d 70 6c 65 | 74 65 73 20 77 69 74 68 |t comple|tes with|
|00002550| 6f 75 74 20 65 72 72 6f | 72 20 28 72 65 73 75 6c |out erro|r (resul|
|00002560| 74 20 3d 20 7a 65 72 6f | 29 2c 20 74 68 65 6e 20 |t = zero|), then |
|00002570| 74 68 65 20 3c 63 6f 6d | 6d 61 6e 64 73 32 3e 20 |the <com|mands2> |
|00002580| 63 6c 61 75 73 65 20 77 | 69 6c 6c 20 62 65 20 65 |clause w|ill be e|
|00002590| 78 65 63 75 74 65 64 2e | 20 20 43 6f 6e 74 72 6f |xecuted.| Contro|
|000025a0| 6c 20 77 69 6c 6c 20 74 | 68 65 6e 20 72 65 74 75 |l will t|hen retu|
|000025b0| 72 6e 20 74 6f 20 74 68 | 65 20 3c 63 6f 6d 6d 61 |rn to th|e <comma|
|000025c0| 6e 64 73 31 3e 20 63 6c | 61 75 73 65 2c 20 61 6e |nds1> cl|ause, an|
|000025d0| 64 20 74 68 65 20 70 72 | 6f 63 65 73 73 20 77 69 |d the pr|ocess wi|
|000025e0| 6c 6c 20 63 6f 6e 74 69 | 6e 75 65 20 75 6e 74 69 |ll conti|nue unti|
|000025f0| 6c 20 74 68 65 20 6c 61 | 73 74 20 63 6f 6d 6d 61 |l the la|st comma|
|00002600| 6e 64 20 6f 66 20 74 68 | 69 73 20 73 65 74 20 70 |nd of th|is set p|
|00002610| 72 6f 64 75 63 65 73 20 | 61 6e 20 65 72 72 6f 72 |roduces |an error|
|00002620| 20 28 72 65 73 75 6c 74 | 20 3c 3e 20 30 29 2e 0d | (result| <> 0)..|
|00002630| 0d 46 6c 6f 77 20 6f 66 | 20 63 6f 6e 74 72 6f 6c |.Flow of| control|
|00002640| 20 73 74 61 74 65 6d 65 | 6e 74 73 20 61 72 65 20 | stateme|nts are |
|00002650| 61 76 61 69 6c 61 62 6c | 65 20 69 6e 20 6e 53 68 |availabl|e in nSh|
|00002660| 65 6c 6c 2d 50 72 6f 28 | 74 6d 29 0d 0d 52 45 54 |ell-Pro(|tm)..RET|
|00002670| 55 52 4e 20 43 4f 44 45 | 53 0d 0d 3c 30 09 45 72 |URN CODE|S..<0.Er|
|00002680| 72 6f 72 0d 30 09 53 75 | 63 63 65 73 73 0d 0d 53 |ror.0.Su|ccess..S|
|00002690| 45 45 20 41 4c 53 4f 0d | 0d 75 6e 74 69 6c 2c 20 |EE ALSO.|.until, |
|000026a0| 69 66 0d 0d 45 58 41 4d | 50 4c 45 53 0d 0d 77 68 |if..EXAM|PLES..wh|
|000026b0| 69 6c 65 20 79 65 73 6e | 6f 20 22 53 68 6f 75 6c |ile yesn|o "Shoul|
|000026c0| 64 20 49 20 73 61 79 20 | 68 65 6c 6c 6f 3f 22 20 |d I say |hello?" |
|000026d0| 64 6f 20 68 65 6c 6c 6f | 20 64 6f 6e 65 00 00 02 |do hello| done...|
|000026e0| 74 0d 4e 41 4d 45 0d 0d | 75 6e 74 69 6c 20 2d 20 |t.NAME..|until - |
|000026f0| 63 6f 6e 64 69 74 69 6f | 6e 61 6c 20 65 78 65 63 |conditio|nal exec|
|00002700| 75 74 69 6f 6e 0d 0d 53 | 59 4e 4f 50 53 49 53 0d |ution..S|YNOPSIS.|
|00002710| 0d 75 6e 74 69 6c 20 3c | 63 6f 6d 6d 61 6e 64 73 |.until <|commands|
|00002720| 31 3e 20 64 6f 20 3c 63 | 6f 6d 6d 61 6e 64 73 32 |1> do <c|ommands2|
|00002730| 3e 20 64 6f 6e 65 0d 0d | 44 45 53 43 52 49 50 54 |> done..|DESCRIPT|
|00002740| 49 4f 4e 0d 0d 49 6e 20 | 74 68 69 73 20 73 74 72 |ION..In |this str|
|00002750| 75 63 74 75 72 65 2c 20 | 74 68 65 20 3c 63 6f 6d |ucture, |the <com|
|00002760| 6d 61 6e 64 73 31 3e 20 | 63 6c 61 75 73 65 20 77 |mands1> |clause w|
|00002770| 69 6c 6c 20 61 6c 77 61 | 79 73 20 65 78 65 63 75 |ill alwa|ys execu|
|00002780| 74 65 2e 20 20 49 66 20 | 74 68 65 20 72 65 73 75 |te. If |the resu|
|00002790| 6c 74 20 6f 66 20 74 68 | 65 20 6c 61 73 74 20 63 |lt of th|e last c|
|000027a0| 6f 6d 6d 61 6e 64 20 6f | 66 20 74 68 65 20 73 65 |ommand o|f the se|
|000027b0| 74 20 70 72 6f 64 75 63 | 65 73 20 61 6e 20 65 72 |t produc|es an er|
|000027c0| 72 6f 72 20 28 72 65 73 | 75 6c 74 20 3c 3e 20 7a |ror (res|ult <> z|
|000027d0| 65 72 6f 29 2c 20 74 68 | 65 6e 20 74 68 65 20 3c |ero), th|en the <|
|000027e0| 63 6f 6d 6d 61 6e 64 73 | 32 3e 20 63 6c 61 75 73 |commands|2> claus|
|000027f0| 65 20 77 69 6c 6c 20 62 | 65 20 65 78 65 63 75 74 |e will b|e execut|
|00002800| 65 64 2e 20 20 43 6f 6e | 74 72 6f 6c 20 77 69 6c |ed. Con|trol wil|
|00002810| 6c 20 74 68 65 6e 20 72 | 65 74 75 72 6e 20 74 6f |l then r|eturn to|
|00002820| 20 74 68 65 20 3c 63 6f | 6d 6d 61 6e 64 73 31 3e | the <co|mmands1>|
|00002830| 20 63 6c 61 75 73 65 2c | 20 61 6e 64 20 74 68 65 | clause,| and the|
|00002840| 20 70 72 6f 63 65 73 73 | 20 77 69 6c 6c 20 63 6f | process| will co|
|00002850| 6e 74 69 6e 75 65 20 75 | 6e 74 69 6c 20 74 68 65 |ntinue u|ntil the|
|00002860| 20 6c 61 73 74 20 63 6f | 6d 6d 61 6e 64 20 6f 66 | last co|mmand of|
|00002870| 20 74 68 69 73 20 73 65 | 74 20 63 6f 6d 70 6c 65 | this se|t comple|
|00002880| 74 65 73 20 77 69 74 68 | 6f 75 74 20 65 72 72 6f |tes with|out erro|
|00002890| 72 20 28 72 65 73 75 6c | 74 20 3d 20 30 29 2e 0d |r (resul|t = 0)..|
|000028a0| 0d 46 6c 6f 77 20 6f 66 | 20 63 6f 6e 74 72 6f 6c |.Flow of| control|
|000028b0| 20 73 74 61 74 65 6d 65 | 6e 74 73 20 61 72 65 20 | stateme|nts are |
|000028c0| 61 76 61 69 6c 61 62 6c | 65 20 69 6e 20 6e 53 68 |availabl|e in nSh|
|000028d0| 65 6c 6c 2d 50 72 6f 28 | 74 6d 29 0d 0d 52 45 54 |ell-Pro(|tm)..RET|
|000028e0| 55 52 4e 20 43 4f 44 45 | 53 0d 0d 3c 30 09 45 72 |URN CODE|S..<0.Er|
|000028f0| 72 6f 72 0d 30 09 53 75 | 63 63 65 73 73 0d 0d 53 |ror.0.Su|ccess..S|
|00002900| 45 45 20 41 4c 53 4f 0d | 0d 77 68 69 6c 65 2c 20 |EE ALSO.|.while, |
|00002910| 69 66 0d 0d 45 58 41 4d | 50 4c 45 53 0d 0d 75 6e |if..EXAM|PLES..un|
|00002920| 74 69 6c 20 79 65 73 6e | 6f 20 22 53 68 6f 75 6c |til yesn|o "Shoul|
|00002930| 64 20 49 20 53 54 4f 50 | 20 73 61 79 69 6e 67 20 |d I STOP| saying |
|00002940| 68 65 6c 6c 6f 3f 22 20 | 64 6f 20 68 65 6c 6c 6f |hello?" |do hello|
|00002950| 20 64 6f 6e 65 00 00 00 | ca 0d 4e 41 4d 45 0d 0d | done...|..NAME..|
|00002960| 64 6f 20 2d 20 63 6f 6e | 64 69 74 69 6f 6e 61 6c |do - con|ditional|
|00002970| 20 65 78 65 63 75 74 69 | 6f 6e 0d 0d 53 59 4e 4f | executi|on..SYNO|
|00002980| 50 53 49 53 0d 0d 77 68 | 69 6c 65 20 3c 63 6f 6d |PSIS..wh|ile <com|
|00002990| 6d 61 6e 64 73 31 3e 20 | 64 6f 20 3c 63 6f 6d 6d |mands1> |do <comm|
|000029a0| 61 6e 64 73 32 3e 20 64 | 6f 6e 65 0d 0d 6f 72 0d |ands2> d|one..or.|
|000029b0| 0d 75 6e 74 69 6c 20 3c | 63 6f 6d 6d 61 6e 64 73 |.until <|commands|
|000029c0| 31 3e 20 64 6f 20 3c 63 | 6f 6d 6d 61 6e 64 73 32 |1> do <c|ommands2|
|000029d0| 3e 20 64 6f 6e 65 0d 0d | 44 45 53 43 52 49 50 54 |> done..|DESCRIPT|
|000029e0| 49 4f 4e 0d 0d 53 65 65 | 20 74 68 65 20 6d 61 6e |ION..See| the man|
|000029f0| 20 70 61 67 65 20 66 6f | 72 20 22 77 68 69 6c 65 | page fo|r "while|
|00002a00| 22 20 6f 72 20 22 75 6e | 74 69 6c 22 20 66 6f 72 |" or "un|til" for|
|00002a10| 20 6d 6f 72 65 20 69 6e | 66 6f 72 6d 61 74 69 6f | more in|formatio|
|00002a20| 6e 2e 0d 00 00 00 cc 0d | 4e 41 4d 45 0d 0d 64 6f |n.......|NAME..do|
|00002a30| 6e 65 20 2d 20 63 6f 6e | 64 69 74 69 6f 6e 61 6c |ne - con|ditional|
|00002a40| 20 65 78 65 63 75 74 69 | 6f 6e 0d 0d 53 59 4e 4f | executi|on..SYNO|
|00002a50| 50 53 49 53 0d 0d 77 68 | 69 6c 65 20 3c 63 6f 6d |PSIS..wh|ile <com|
|00002a60| 6d 61 6e 64 73 31 3e 20 | 64 6f 20 3c 63 6f 6d 6d |mands1> |do <comm|
|00002a70| 61 6e 64 73 32 3e 20 64 | 6f 6e 65 0d 0d 6f 72 0d |ands2> d|one..or.|
|00002a80| 0d 75 6e 74 69 6c 20 3c | 63 6f 6d 6d 61 6e 64 73 |.until <|commands|
|00002a90| 31 3e 20 64 6f 20 3c 63 | 6f 6d 6d 61 6e 64 73 32 |1> do <c|ommands2|
|00002aa0| 3e 20 64 6f 6e 65 0d 0d | 44 45 53 43 52 49 50 54 |> done..|DESCRIPT|
|00002ab0| 49 4f 4e 0d 0d 53 65 65 | 20 74 68 65 20 6d 61 6e |ION..See| the man|
|00002ac0| 20 70 61 67 65 20 66 6f | 72 20 22 77 68 69 6c 65 | page fo|r "while|
|00002ad0| 22 20 6f 72 20 22 75 6e | 74 69 6c 22 20 66 6f 72 |" or "un|til" for|
|00002ae0| 20 6d 6f 72 65 20 69 6e | 66 6f 72 6d 61 74 69 6f | more in|formatio|
|00002af0| 6e 2e 0d 00 00 01 e0 0d | 4e 41 4d 45 0d 0d 65 78 |n.......|NAME..ex|
|00002b00| 69 74 20 2d 20 65 78 69 | 74 20 73 63 72 69 70 74 |it - exi|t script|
|00002b10| 0d 0d 53 59 4e 4f 50 53 | 49 53 0d 0d 65 78 69 74 |..SYNOPS|IS..exit|
|00002b20| 20 5b 72 65 74 75 72 6e | 20 63 6f 64 65 5d 0d 0d | [return| code]..|
|00002b30| 44 45 53 43 52 49 50 54 | 49 4f 4e 0d 0d 54 68 65 |DESCRIPT|ION..The|
|00002b40| 20 22 65 78 69 74 22 20 | 63 6f 6d 6d 61 6e 64 20 | "exit" |command |
|00002b50| 63 61 75 73 65 73 20 61 | 6e 20 69 6d 6d 65 64 69 |causes a|n immedi|
|00002b60| 61 74 65 20 72 65 74 75 | 72 6e 20 66 72 6f 6d 20 |ate retu|rn from |
|00002b70| 61 20 73 63 72 69 70 74 | 2e 20 20 41 6e 20 69 6e |a script|. An in|
|00002b80| 74 65 67 65 72 20 72 65 | 74 75 72 6e 20 63 6f 64 |teger re|turn cod|
|00002b90| 65 20 6d 61 79 20 62 65 | 20 73 65 74 20 61 6e 64 |e may be| set and|
|00002ba0| 20 6c 61 74 65 72 20 61 | 63 63 65 73 73 65 64 20 | later a|ccessed |
|00002bb0| 75 73 69 6e 67 20 74 68 | 65 20 24 3f 20 70 73 65 |using th|e $? pse|
|00002bc0| 75 64 6f 20 76 61 72 69 | 61 62 6c 65 2e 20 20 57 |udo vari|able. W|
|00002bd0| 68 65 6e 20 6e 6f 20 70 | 61 72 61 6d 65 74 65 72 |hen no p|arameter|
|00002be0| 20 69 73 20 67 69 76 65 | 6e 2c 20 61 20 63 6f 64 | is give|n, a cod|
|00002bf0| 65 20 6f 66 20 30 20 69 | 73 20 72 65 74 75 72 6e |e of 0 i|s return|
|00002c00| 65 64 2e 0d 0d 57 68 65 | 6e 20 74 68 65 20 22 65 |ed...Whe|n the "e|
|00002c10| 78 69 74 22 20 63 6f 6d | 6d 61 6e 64 20 69 73 20 |xit" com|mand is |
|00002c20| 75 73 65 64 20 6f 6e 20 | 74 68 65 20 63 6f 6d 6d |used on |the comm|
|00002c30| 61 6e 64 20 6c 69 6e 65 | 2c 20 69 74 20 63 61 6e |and line|, it can|
|00002c40| 63 65 6c 73 20 61 6c 6c | 20 70 72 6f 63 65 73 73 |cels all| process|
|00002c50| 69 6e 67 20 61 6e 64 20 | 73 65 74 73 20 74 68 65 |ing and |sets the|
|00002c60| 20 73 70 65 63 69 66 69 | 65 64 20 72 65 74 75 72 | specifi|ed retur|
|00002c70| 6e 20 63 6f 64 65 2e 0d | 0d 45 58 41 4d 50 4c 45 |n code..|.EXAMPLE|
|00002c80| 53 0d 0d 23 0d 23 20 74 | 65 73 74 20 75 73 61 67 |S..#.# t|est usag|
|00002c90| 65 0d 23 0d 69 66 20 2e | 6e 65 2e 20 24 23 20 32 |e.#.if .|ne. $# 2|
|00002ca0| 20 74 68 65 6e 0d 20 20 | 20 20 65 63 68 6f 20 22 | then. | echo "|
|00002cb0| 55 73 61 67 65 3a 20 63 | 6d 64 20 66 69 6c 65 6e |Usage: c|md filen|
|00002cc0| 61 6d 65 22 0d 20 20 20 | 20 65 78 69 74 20 2d 31 |ame". | exit -1|
|00002cd0| 0d 65 6e 64 69 66 0d 00 | 00 02 55 0d 4e 41 4d 45 |.endif..|..U.NAME|
|00002ce0| 0d 0d 65 78 70 6f 72 74 | 20 2d 20 65 78 70 6f 72 |..export| - expor|
|00002cf0| 74 20 61 20 73 68 65 6c | 6c 20 76 61 72 69 61 62 |t a shel|l variab|
|00002d00| 6c 65 20 66 72 6f 6d 20 | 61 20 73 63 72 69 70 74 |le from |a script|
|00002d10| 0d 0d 53 59 4e 4f 50 53 | 49 53 0d 0d 65 78 70 6f |..SYNOPS|IS..expo|
|00002d20| 72 74 20 76 61 72 69 61 | 62 6c 65 5f 6e 61 6d 65 |rt varia|ble_name|
|00002d30| 0d 0d 44 45 53 43 52 49 | 50 54 49 4f 4e 0d 0d 54 |..DESCRI|PTION..T|
|00002d40| 68 65 20 22 65 78 70 6f | 72 74 22 20 63 6f 6d 6d |he "expo|rt" comm|
|00002d50| 61 6e 64 20 63 6f 70 69 | 65 73 20 61 20 73 68 65 |and copi|es a she|
|00002d60| 6c 6c 20 76 61 72 69 61 | 62 6c 65 20 66 72 6f 6d |ll varia|ble from|
|00002d70| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 73 63 72 | the cur|rent scr|
|00002d80| 69 70 74 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 20 |ipt envi|ronment |
|00002d90| 74 6f 20 74 68 61 74 20 | 6f 66 20 74 68 65 20 70 |to that |of the p|
|00002da0| 61 72 65 6e 74 2e 20 20 | 54 68 65 20 22 65 78 70 |arent. |The "exp|
|00002db0| 6f 72 74 22 20 6f 70 65 | 72 61 74 69 6f 6e 20 63 |ort" ope|ration c|
|00002dc0| 6f 70 69 65 73 20 76 61 | 72 69 61 62 6c 65 73 20 |opies va|riables |
|00002dd0| 75 70 20 61 20 73 69 6e | 67 6c 65 20 6c 65 76 65 |up a sin|gle leve|
|00002de0| 6c 2e 20 20 54 6f 20 65 | 78 70 6f 72 74 20 76 61 |l. To e|xport va|
|00002df0| 72 69 61 62 6c 65 73 20 | 66 72 6f 6d 20 6e 65 73 |riables |from nes|
|00002e00| 74 65 64 20 73 63 72 69 | 70 74 73 2c 20 61 20 73 |ted scri|pts, a s|
|00002e10| 65 72 69 65 73 20 6f 66 | 20 22 65 78 70 6f 72 74 |eries of| "export|
|00002e20| 22 20 63 6f 6d 6d 61 6e | 64 73 20 77 6f 75 6c 64 |" comman|ds would|
|00002e30| 20 62 65 20 72 65 71 75 | 69 72 65 64 2e 0d 0d 54 | be requ|ired...T|
|00002e40| 68 65 20 22 65 78 70 6f | 72 74 22 20 63 6f 6d 6d |he "expo|rt" comm|
|00002e50| 61 6e 64 20 73 68 6f 75 | 6c 64 20 6f 6e 6c 79 20 |and shou|ld only |
|00002e60| 62 65 20 75 73 65 64 20 | 66 72 6f 6d 20 77 69 74 |be used |from wit|
|00002e70| 68 69 6e 20 73 63 72 69 | 70 74 73 2c 20 61 6e 64 |hin scri|pts, and|
|00002e80| 20 66 61 69 6c 73 20 77 | 68 65 6e 20 74 79 70 65 | fails w|hen type|
|00002e90| 64 20 64 69 72 65 63 74 | 6c 79 20 6f 6e 20 74 68 |d direct|ly on th|
|00002ea0| 65 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 2e 0d |e comman|d line..|
|00002eb0| 0d 45 58 41 4d 50 4c 45 | 53 0d 0d 23 0d 23 20 73 |.EXAMPLE|S..#.# s|
|00002ec0| 65 74 20 74 68 65 20 77 | 6f 72 6b 69 6e 67 20 64 |et the w|orking d|
|00002ed0| 69 72 65 63 74 6f 72 79 | 20 61 6e 64 20 65 78 70 |irectory| and exp|
|00002ee0| 6f 72 74 20 74 68 65 20 | 63 6f 72 72 65 73 70 6f |ort the |correspo|
|00002ef0| 6e 64 69 6e 67 20 76 61 | 72 69 61 62 6c 65 0d 23 |nding va|riable.#|
|00002f00| 0d 63 64 20 22 6d 79 20 | 64 69 73 6b 3a 6d 79 20 |.cd "my |disk:my |
|00002f10| 66 61 76 6f 72 69 74 65 | 20 74 6f 6f 6c 73 3a 74 |favorite| tools:t|
|00002f20| 6f 6f 6c 73 22 0d 65 78 | 70 6f 72 74 20 50 57 44 |ools".ex|port PWD|
|00002f30| 00 00 01 00 00 00 2e b0 | 00 00 2d b0 00 00 02 a7 |........|..-.....|
|00002f40| 00 52 78 dc 0c 7e 00 00 | 00 1c 01 4a 00 02 4e 53 |.Rx..~..|...J..NS|
|00002f50| 48 43 00 00 00 1a 76 65 | 72 73 00 01 00 26 54 45 |HC....ve|rs...&TE|
|00002f60| 58 54 00 13 00 3e 3e 80 | 00 00 20 00 00 00 00 52 |XT...>>.|.. ....R|
|00002f70| 78 e4 00 01 ff ff 00 00 | 06 6e 00 52 77 5c 00 02 |x.......|.n.Rw\..|
|00002f80| ff ff 00 00 06 a9 00 00 | 00 00 3e 80 00 08 00 00 |........|..>.....|
|00002f90| 06 d4 00 52 77 40 3e 8a | 00 18 00 00 08 db 00 00 |...Rw@>.|........|
|00002fa0| 00 00 3e 94 00 2a 00 00 | 09 fb 00 00 00 00 3e 9e |..>..*..|......>.|
|00002fb0| 00 3a 00 00 0c 33 00 00 | 00 00 3e a8 00 4c 00 00 |.:...3..|..>..L..|
|00002fc0| 0d 9b 00 00 00 00 3e d0 | 00 5c 00 00 0f 6f 00 00 |......>.|.\...o..|
|00002fd0| 00 00 3e da 00 70 00 00 | 11 4b 00 00 00 00 3e c6 |..>..p..|.K....>.|
|00002fe0| 00 82 00 00 13 93 00 00 | 00 00 3e bc 00 93 00 00 |........|..>.....|
|00002ff0| 16 78 00 00 00 00 3e b2 | 00 a3 00 00 17 73 00 00 |.x....>.|.....s..|
|00003000| 00 00 3f 02 00 b2 00 00 | 19 a7 00 00 00 00 3e f8 |..?.....|......>.|
|00003010| 00 c3 00 00 1b f9 00 00 | 00 00 3f 0c 00 d2 00 00 |........|..?.....|
|00003020| 1e 48 00 00 00 00 3f 16 | 00 e3 00 00 20 9a 00 00 |.H....?.|.... ...|
|00003030| 00 00 3f 20 00 f5 00 00 | 22 ed 00 00 00 00 3f 2a |..? ....|".....?*|
|00003040| 01 07 00 00 25 5d 00 00 | 00 00 3f 34 01 19 00 00 |....%]..|..?4....|
|00003050| 27 d5 00 00 00 00 3f 3e | 01 28 00 00 28 a3 00 00 |'.....?>|.(..(...|
|00003060| 00 00 3e e4 01 39 00 00 | 29 73 00 00 00 00 3e ee |..>..9..|)s....>.|
|00003070| 01 4a 00 00 2b 57 00 00 | 00 00 07 63 6f 6d 6d 61 |.J..+W..|...comma|
|00003080| 6e 64 0f 6d 61 6e 20 6d | 61 6e 20 67 65 6e 65 72 |nd.man m|an gener|
|00003090| 61 6c 11 6d 61 6e 20 6d | 61 6e 20 72 65 73 6f 75 |al.man m|an resou|
|000030a0| 72 63 65 73 0f 6d 61 6e | 20 73 65 74 20 67 65 6e |rces.man| set gen|
|000030b0| 65 72 61 6c 11 6d 61 6e | 20 75 6e 73 65 74 20 67 |eral.man| unset g|
|000030c0| 65 6e 65 72 61 6c 0f 6d | 61 6e 20 65 6e 76 20 67 |eneral.m|an env g|
|000030d0| 65 6e 65 72 61 6c 13 6d | 61 6e 20 70 61 74 68 63 |eneral.m|an pathc|
|000030e0| 68 6b 20 67 65 6e 65 72 | 61 6c 11 6d 61 6e 20 77 |hk gener|al.man w|
|000030f0| 68 69 63 68 20 67 65 6e | 65 72 61 6c 10 6d 61 6e |hich gen|eral.man|
|00003100| 20 70 61 74 68 20 67 65 | 6e 65 72 61 6c 0f 6d 61 | path ge|neral.ma|
|00003110| 6e 20 70 77 64 20 67 65 | 6e 65 72 61 6c 0e 6d 61 |n pwd ge|neral.ma|
|00003120| 6e 20 63 64 20 67 65 6e | 65 72 61 6c 10 6d 61 6e |n cd gen|eral.man|
|00003130| 20 74 68 65 6e 20 67 65 | 6e 65 72 61 6c 0e 6d 61 | then ge|neral.ma|
|00003140| 6e 20 69 66 20 67 65 6e | 65 72 61 6c 10 6d 61 6e |n if gen|eral.man|
|00003150| 20 65 6c 73 65 20 67 65 | 6e 65 72 61 6c 11 6d 61 | else ge|neral.ma|
|00003160| 6e 20 65 6e 64 69 66 20 | 67 65 6e 65 72 61 6c 11 |n endif |general.|
|00003170| 6d 61 6e 20 77 68 69 6c | 65 20 67 65 6e 65 72 61 |man whil|e genera|
|00003180| 6c 11 6d 61 6e 20 75 6e | 74 69 6c 20 67 65 6e 65 |l.man un|til gene|
|00003190| 72 61 6c 0e 6d 61 6e 20 | 64 6f 20 67 65 6e 65 72 |ral.man |do gener|
|000031a0| 61 6c 10 6d 61 6e 20 64 | 6f 6e 65 20 67 65 6e 65 |al.man d|one gene|
|000031b0| 72 61 6c 10 6d 61 6e 20 | 65 78 69 74 20 67 65 6e |ral.man |exit gen|
|000031c0| 65 72 61 6c 12 6d 61 6e | 20 65 78 70 6f 72 74 20 |eral.man| export |
|000031d0| 67 65 6e 65 72 61 6c 00 | 00 00 00 00 00 00 00 00 |general.|........|
|000031e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+